1.0.8 • Published 8 months ago

version2number v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago