Skip to content

A fast semver parser and comparator based on rust semver.

Notifications You must be signed in to change notification settings

Zzzen/fast-semver

Repository files navigation

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

Acknowledgements

semver
napi-rs

About

A fast semver parser and comparator based on rust semver.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published