https://github.com/aloisdeniel/node-parse-version
Parsing four number versions.
https://github.com/aloisdeniel/node-parse-version
fourdigits parser versionning
Last synced: 4 months ago
JSON representation
Parsing four number versions.
- Host: GitHub
- URL: https://github.com/aloisdeniel/node-parse-version
- Owner: aloisdeniel
- License: mit
- Created: 2017-04-25T16:45:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T04:12:32.000Z (about 8 years ago)
- Last Synced: 2025-02-16T21:48:26.919Z (5 months ago)
- Topics: fourdigits, parser, versionning
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parse-version
Simply parse string like `4.5.6.7` into javascript object like `{ major: 4, minor: 5, patch: 6, build: 7 }`.
## Install
```sh
$ npm install --save parse-version
```## Quickstart
```js
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](http://aloisdeniel.github.io)