# compare-version

> Compare semver version numbers

Latest version **0.1.2** (published 2014-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install compare-version
pnpm add compare-version
yarn add compare-version
bun add compare-version
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2014-04-23 |
| First published | 2014-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/compare-version) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | compare, number, semver, version |

## Links

- npm: https://www.npmjs.com/package/compare-version
- Repository: https://github.com/kevva/compare-version
- Issues: https://github.com/kevva/compare-version/issues
- npm.io page: https://npm.io/package/compare-version

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2014-04-23
- 0.1.1 — 2014-02-24
- 0.1.0 — 2014-02-24

## README

# compare-version [![Build Status](https://travis-ci.org/kevva/compare-version.svg?branch=master)](https://travis-ci.org/kevva/compare-version)

> Compare version numbers.

## Install

```bash
$ npm install --save compare-version
```

```bash
$ component install kevva/compare-version
```

```bash
$ bower install --save compare-version
```

## Usage

```js
var compareVersion = require('compare-version');

compareVersion('1.11.0', '1.11.0'); // => 0
compareVersion('1.11.0', '1.2.9'); // => 1
compareVersion('1.11.3', '1.11.25'); // => -1
```

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](https://github.com/kevva)

---
_Source: https://npm.io/package/compare-version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
