Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aloisdeniel/node-parse-version
Parsing four number versions.
https://github.com/aloisdeniel/node-parse-version
fourdigits parser versionning
Last synced: about 1 month 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T04:12:32.000Z (over 7 years ago)
- Last Synced: 2024-11-14T11:11:42.596Z (about 1 month 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)