JSPM

parse-version

0.7.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1599
  • Score
    100M100P100Q96528F
  • License MIT

Parsing four number versions.

Package Exports

  • parse-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-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-version

Simply parse string like 4.5.6.7 into javascript object like { major: 4, minor: 5, patch: 6, build: 7 }.

Install

$ npm install --save parse-version

Quickstart

var parseVersion = require('parse-version');
var version = parseVersion('2.5.6.7'); // { major: 2, minor: 5, patch: 6, build: 7 }

MIT © Aloïs Deniel