JSPM

parse-node-version

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8098551
  • Score
    100M100P100Q205853F
  • License MIT

Turn node's process.version into something useful.

Package Exports

  • parse-node-version

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-node-version) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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