1.0.8 • Published 3 years ago

version2number v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

version2number

A npm package that converts version string to numbers

const v2n = require("version2number")

if (v2n("1.0.0") < v2n("1.0.2")) {
    console.log("1.0.0 is smaller than 1.0.2!")
}

console.log(v2n("1.0.0")) // 10000 which is 010000 + 0000 + 00

console.log(v2n("1.0.0", 1)) // 100 which is 100 + 00 + 0

View source code: https://github.com/OguzhanUmutlu/version2number

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago