node.js api for running "n" commands
npm install n-apin-api
=====
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Dependency Status][daviddm-image]][daviddm-url]
node.js api for n (https://www.npmjs.org/package/n). Minor version is in step with n.
Switch to the specified node version. Download and Install if not present on
system.
``js
var n = require('n-api');
n('latest');
// do some stuff
`
Switch to previously active version
List availble versions;
`js`
var list = n.ls(); // [ '0.8.6', '0.8.7', ... '0.11.13' ]
Run cmd with the specified version of node.
`js`
n.use('0.11.13', 'app.js');
Return the location of the node binary for the specified version, or null`
if that version is not installed.o
Travis Webb (me@traviswebb.com)
[npm-image]: https://img.shields.io/npm/v/n-api.svg?style=flat
[npm-url]: https://npmjs.org/package/n-api
[travis-image]: https://img.shields.io/travis/tjwebb/n-api.svg?style=flat
[travis-url]: https://travis-ci.org/tjwebb/n-api
[daviddm-image]: http://img.shields.io/david/tjwebb/n-api.svg?style=flat
[daviddm-url]: https://david-dm.org/tjwebb/n-api