14 lines
1 KiB
Text
14 lines
1 KiB
Text
<span class="hljs-function"><span class="hljs-title">returnNull</span> = -></span> <span class="hljs-literal">null</span>
|
|
<span class="hljs-function"><span class="hljs-title">returnTrue</span> = <span class="hljs-params">()</span> -></span> <span class="hljs-literal">true</span>
|
|
<span class="hljs-function"><span class="hljs-title">square</span> = <span class="hljs-params">(x)</span> -></span> x * x
|
|
|
|
npmWishlist.sha256 = <span class="hljs-function"><span class="hljs-params">(str)</span> -></span>
|
|
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error()
|
|
|
|
str.split(<span class="hljs-string">" "</span>).map(<span class="hljs-function"><span class="hljs-params">(m)</span> -></span> m.charCodeAt(<span class="hljs-number">0</span>))
|
|
|
|
fs.readFile(<span class="hljs-string">"package.json"</span>, <span class="hljs-string">"utf-8"</span>, <span class="hljs-function"><span class="hljs-params">(err, content)</span> -></span>
|
|
data = JSON.parse(content)
|
|
|
|
data.version
|
|
)
|