|
|
před 2 roky | |
|---|---|---|
| .. | ||
| LICENSE | před 2 roky | |
| README.md | před 2 roky | |
| index.js | před 2 roky | |
| package.json | před 2 roky | |
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