root 3bf41bf355 update 1 gadu atpakaļ
..
LICENSE 3bf41bf355 update 1 gadu atpakaļ
README.md 3bf41bf355 update 1 gadu atpakaļ
index.js 3bf41bf355 update 1 gadu atpakaļ
package.json 3bf41bf355 update 1 gadu atpakaļ

README.md

parse-node-version

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

Turn node's process.version into something useful.

Usage

var nodeVersion = require('parse-node-version')(process.version);

console.log(nodeVersion.major, nodeVersion.minor, nodeVersion.patch);

API

parseVersion(nodeVersionString)

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.

License

MIT