Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
node.js api for n (https://www.npmjs.org/package/n). Minor version is in step with n
.
n(<version>)
Switch to the specified node version. Download and Install if not present on system.
var n = require('n-api');
n('latest');
// do some stuff
n.prev()
Switch to previously active version
n.ls()
List availble versions;
var list = n.ls(); // [ '0.8.6', '0.8.7', ... '0.11.13' ]
n.use(<version>, <cmd>)
Run cmd
with the specified version
of node.
n.use('0.11.13', 'app.js');
n.bin(<version>)
Return the location of the node binary for the specified version
, or null
if that version is not installed.o
FAQs
node.js api for running "n" commands
The npm package n-api receives a total of 17 weekly downloads. As such, n-api popularity was classified as not popular.
We found that n-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.