@vivaxy/semver-compare
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@vivaxy/semver-compare

Build Status NPM Version NPM Downloads MIT License Standard Version Codecov

Install

yarn add @vivaxy/semver-compare or npm i @vivaxy/semver-compare

Usage

import semverCompare from '@vivaxy/semver-compare';

console.log(semverCompare('1.0.0', '1.0.1')); // => -1

Benchmark

hobbyquaker/semantic-compare x 69,697 ops/sec ±5.74% (83 runs sampled)

asamuzaK/semverParser x 136,009 ops/sec ±0.81% (90 runs sampled)

npm/node-semver x 136,487 ops/sec ±1.27% (88 runs sampled)

omichelsen/compare-versions x 140,054 ops/sec ±2.73% (76 runs sampled)

vivaxy/semver-compare x 197,073 ops/sec ±3.13% (85 runs sampled)

Fastest is vivaxy/semver-compare

Related Projects

Project created by create-n.

Package Sidebar

Install

npm i @vivaxy/semver-compare

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

33.1 kB

Total Files

33

Last publish

Collaborators

  • vivaxy