get the latest version of Node...from Node
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE.txt
README.md
get-latest-node-version.js
package.json

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.');
  }
});