core-version-manager
v1.0.8
Published
A JavaScript Library To Manage Version String
Downloads
4
Readme
core-version-manager
A JavaScript Library To Manage Version String
Get Started
Npm
$ npm install --save core-version-manager
import version from 'core-version-manager'
API
check()
version.check('1.2.4')
next()
version.next('1.2.4') // 1.2.5
pre()
version.pre('1.2.4') // 1.2.3
max()
version.max('1.2.4', '1.1.2', '1.0.1') // 1.2.4
min()
version.min('1.2.4', '1.1.2', '1.0.1') // 1.0.1
sort()
version.pre(['1.2.4', '1.1.2', '1.0.1']) // ['1.0.1', '1.1.2', '1.2.4']