parse-version
v0.7.0
Published
Parsing four number versions.
Downloads
1,621
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 }
Copyright and license
MIT © Aloïs Deniel