{"_id":"n-api","_rev":"56-55c56eae557ad5b6d8e17fa1f985f8eb","name":"n-api","time":{"modified":"2022-06-20T18:48:45.181Z","created":"2014-06-30T02:57:51.137Z","1.2.9":"2014-06-30T02:57:51.137Z","1.2.10":"2014-06-30T04:42:44.357Z","1.2.11":"2014-06-30T08:12:53.901Z","1.2.12":"2014-07-02T19:22:55.714Z","1.2.13":"2014-07-02T19:25:25.264Z","1.2.14":"2014-07-02T19:28:14.191Z","1.2.15":"2014-07-02T19:43:59.039Z","1.2.16":"2014-07-02T20:57:27.844Z","1.2.17":"2014-07-03T06:25:31.562Z","1.2.20":"2014-07-03T08:08:21.887Z","1.2.21":"2014-07-09T03:46:56.684Z","1.2.22":"2014-07-09T15:41:32.864Z","1.2.23":"2014-07-09T16:20:31.153Z","1.2.24":"2014-07-09T19:00:50.570Z","1.2.26":"2014-07-09T22:22:18.308Z","1.2.27":"2014-07-11T09:26:17.415Z","1.2.28":"2014-07-11T09:37:25.406Z","1.2.29":"2014-07-11T10:04:15.173Z","1.2.30":"2014-07-11T11:44:45.408Z","1.2.31":"2014-07-18T10:18:38.088Z","1.2.32":"2014-07-18T10:18:56.865Z","1.2.38":"2014-08-18T08:49:17.572Z","1.2.39":"2014-08-18T16:43:17.974Z","1.2.42":"2014-12-10T00:14:35.039Z","1.2.43":"2015-09-14T15:31:30.064Z"},"maintainers":[{"name":"xtuple","email":"gmoskowitz@xtuple.com"}],"dist-tags":{"latest":"1.2.43"},"description":"node.js api for running \"n\" commands","readme":"n-api\n=====\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n\nnode.js api for n (https://www.npmjs.org/package/n). Minor version is in step with `n`.\n\n## Usage\n\n### `n(<version>)`\n\nSwitch to the specified node version. Download and Install if not present on\nsystem.\n\n```js\nvar n = require('n-api');\n\nn('latest');\n// do some stuff\n```\n\n### `n.prev()`\n\nSwitch to previously active version\n\n### `n.ls()`\n\nList availble versions;\n\n```js\nvar list = n.ls(); // [ '0.8.6', '0.8.7', ... '0.11.13' ]\n```\n\n### `n.use(<version>, <cmd>)`\n\nRun `cmd` with the specified `version` of node.\n\n```js\nn.use('0.11.13', 'app.js');\n```\n\n### `n.bin(<version>)`\n\nReturn the location of the node binary for the specified `version`, or `null`\nif that version is not installed.o\n### License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n### Author\n\n[Travis Webb](https://github.com/tjwebb) ([me@traviswebb.com](mailto:me@traviswebb.com))\n\n[npm-image]: https://img.shields.io/npm/v/n-api.svg?style=flat\n[npm-url]: https://npmjs.org/package/n-api\n[travis-image]: https://img.shields.io/travis/tjwebb/n-api.svg?style=flat\n[travis-url]: https://travis-ci.org/tjwebb/n-api\n[daviddm-image]: http://img.shields.io/david/tjwebb/n-api.svg?style=flat\n[daviddm-url]: https://david-dm.org/tjwebb/n-api\n","versions":{"1.2.43":{"name":"n-api","version":"1.2.43","description":"node.js api for running \"n\" commands","main":"index.js","scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git://github.com/xtuple/n-api.git"},"keywords":["n","nvm","node","api","version","manager","n-api"],"author":{"name":"Travis Webb","email":"me@traviswebb.com"},"license":"MIT","bugs":{"url":"https://github.com/xtuple/n-api/issues"},"homepage":"https://github.com/xtuple/n-api","dependencies":{"home-dir":"^0.2.0","lodash":"^2.4.1","npmlog":"^0.1.1","semver":"^2.3.1"},"engineStrict":false,"engines":{"node":">= 0.11.12"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1"},"gitHead":"6d9bbc428535c7ba35fd8b9a9929de53995b46c8","_id":"n-api@1.2.43","_shasum":"ad78679f62bd902b6fc208d258f590439f84cca0","_from":".","_npmVersion":"2.13.4","_nodeVersion":"0.10.40","_npmUser":{"name":"xtuple","email":"gmoskowitz@xtuple.com"},"dist":{"shasum":"ad78679f62bd902b6fc208d258f590439f84cca0","tarball":"https://registry.npmjs.org/n-api/-/n-api-1.2.43.tgz","integrity":"sha512-qNpqcNA24XyVKNS95CQ3uOewuFTxEpCEBhjTxlKpq/sDmO0ob3O6xpqK8RLHUlLnotznLB0tSOwi7TWdj1gCoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuaWrpci6o5AEstITBfh+EpFhcma0siBrT2uJudjkjnAIhAJS1gK+3pt4sLUN8vJCiIMQEzKpO2V/5UTw/f1oKwK2c"}]},"maintainers":[{"name":"xtuple","email":"gmoskowitz@xtuple.com"}]}},"homepage":"https://github.com/xtuple/n-api","keywords":["n","nvm","node","api","version","manager","n-api"],"repository":{"type":"git","url":"git://github.com/xtuple/n-api.git"},"author":{"name":"Travis Webb","email":"me@traviswebb.com"},"bugs":{"url":"https://github.com/xtuple/n-api/issues"},"license":"MIT","readmeFilename":"README.md"}