semver

Semantic version parser for Node.js and npm

brewmacoslinux
Try with needOr install directly
Source

About

Semantic version parser for node (the one npm uses)

Commands

semver

Examples

Parse and validate a semantic version$ semver 1.2.3
Check if version satisfies a range$ semver 1.5.0 --range '^1.0.0'
Compare two semantic versions$ semver 1.2.3 1.2.4