# vercomp

> Version Comparison in JavaScript

Latest version **1.0.2** (published 2015-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install vercomp
pnpm add vercomp
yarn add vercomp
bun add vercomp
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-04-06 |
| First published | 2015-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Filirom1 |
| Maintainers | filirom1 |
| Keywords | version, comparison |

## Links

- npm: https://www.npmjs.com/package/vercomp
- Repository: https://github.com/Filirom1/vercomp
- Issues: https://github.com/Filirom1/vercomp/issues
- npm.io page: https://npm.io/package/vercomp

## Dependencies (1)

- [chai](https://npm.io/package/chai.md) ^2.2.0

## Recent versions

- 1.0.2 (latest) — 2015-04-06
- 1.0.1 — 2015-04-05

## README

# vercomp [![Build Status](https://travis-ci.org/Filirom1/vercomp.svg)](https://travis-ci.org/Filirom1/vercomp)
Version Comparison in JavaScript

Inspired by <https://fedoraproject.org/wiki/Archive:Tools/RPM/VersionComparison>

## Usage

    var vercomp = require('vercomp')
    vercomp('1.0.0', '1.0.1') # return -1
    vercomp('10b2', '10a1')   # return 1
    vercomp('1', '1')         # return 0

# Warning

Release are not condisidered in this algorythm.
For example:

    vercomp('6.0.rc1', '6.0') # return 1

If you care about the meaning of releases, check <https://github.com/Filirom1/smart-vercomp>

# LICENSE MIT

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