Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

resolve-node-version

0.0.2 • Public • Published

resolve-node-version

build status

Like node-version-resolver, but without the coffee and installable from npm.

Example

var resolveNodeVersion = require('resolve-node-version');
resolveNodeVersion('unstable', function(err, v){
  console.log('unstable ->', v);
  // unstable -> 0.11.13
});
 
resolveNodeVersion('stable', function(err, v){
  console.log('stable ->', v);
  // stable -> 0.10.30
});
 
resolveNodeVersion('~0.10.0', function(err, v){
  console.log('~0.10.0 ->', v);
  // ~0.10.0 -> 0.10.30
});

Install

npm install resolve-node-version

Test

npm test

License

MIT

Install

npm i resolve-node-version

DownloadsWeekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar