fast-semver
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

fast-semver

a fast semver parser and comparator based on rust semver.

Usage

// only satisfies is supported for now
import { satisfies } from 'fast-semver'

satisfies("1.0.0", "^1.0.0") // true

Benchmarks

yarn bench

Result on my machine:

Running "satisfies" suite...
Progress: 100%

  Native:
    675 740 ops/s, ±6.62%   | fastest

  JavaScript :
    153 463 ops/s, ±1.38%   | slowest, 77.29% slower

Acknowledgements

semver
napi-rs

Readme

Keywords

none

Package Sidebar

Install

npm i fast-semver

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

11.2 kB

Total Files

10

Last publish

Collaborators

  • zzzen