0.0.3 • Published 1 year ago
fast-semver v0.0.3
fast-semver
⚠️ Do not use it in production, because it uses a different flavor of semver than npm.
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