Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

List all npm versions for a package

npm view [<@scope>/]<package> time
https://snipt.net/embed/d170797a6d229963bc80c47573a7de66/
https://snipt.net/raw/d170797a6d229963bc80c47573a7de66/
d170797a6d229963bc80c47573a7de66
bash
Bash
1
2016-12-05T18:18:39
True
False
False
/api/public/snipt/147548/
list-all-npm-versions-for-a-package
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>npm view <span class="o">[</span>&lt;@scope&gt;/<span class="o">]</span>&lt;package&gt; <span class="nb">time</span> </span></pre></div> </td></tr></table>
javascript, node.js, npm

Text only

Kill specific node.js process

1
2
3
4
5
ps aux | grep node

Find the process ID (second from the left):

kill -9 PRCOCESS_ID
https://snipt.net/embed/6aaa519631b0863f4d9f65b4bcb9886b/
https://snipt.net/raw/6aaa519631b0863f4d9f65b4bcb9886b/
6aaa519631b0863f4d9f65b4bcb9886b
text
Text only
5
2016-12-05T17:38:51
True
False
False
Dec 05, 2012 at 04:47 PM
/api/public/snipt/51286/
kill-specific-nodejs-process
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ps aux | grep node </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Find the process ID (second from the left): </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>kill -9 PRCOCESS_ID </span></pre></div> </td></tr></table>
node.js, server
Copyrighted, illegal, or inappropriate content? Email [email protected].