root 3bf41bf355 update | 1 rok pred | |
---|---|---|
.. | ||
LICENSE | 1 rok pred | |
README.md | 1 rok pred | |
index.js | 1 rok pred | |
package.json | 1 rok pred |
Turn node's process.version into something useful.
var nodeVersion = require('parse-node-version')(process.version);
console.log(nodeVersion.major, nodeVersion.minor, nodeVersion.patch);
Takes a node version string (usually process.version
) and returns an object with the major
, minor
, and patch
keys which will all be parsed digits.
MIT