Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)