Socket
Socket
Sign inDemoInstall

parse-version

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parse-version

Parsing four number versions.


Version published
Weekly downloads
560
increased by18.39%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 27 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc