Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

get the latest version of Node...from Node

Usage:

var getLatestNodeVersion = require('get-latest-node-version');
var semver = require('semver');

getLatestNodeVersion(function (err, latestVersion) {
  if (err) { throw err; }
  
  var currentVersion = process.versions.node;
  if (semver.lt(currentVersion, latestVersion)) {
    console.log('You are running an old version of Node!');
  } else {
    console.log('You are up to date.');
  }
});

About

get the latest version of Node...from Node

Resources

License

Packages

No packages published
You can’t perform that action at this time.