Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n-api

node.js api for running "n" commands

  • 1.2.43
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by325%
Maintainers
1
Weekly downloads
 
Created
Source

n-api

NPM version Build status Dependency Status

node.js api for n (https://www.npmjs.org/package/n). Minor version is in step with n.

Usage

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

License

MIT License

Author

Travis Webb (me@traviswebb.com)

Keywords

FAQs

Package last updated on 14 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc