# semver-match

> A simple function that conforms npm package version matching behavior.

Latest version **0.1.1** (published 2016-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install semver-match
pnpm add semver-match
yarn add semver-match
bun add semver-match
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-05-27 |
| First published | 2016-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | vilicvane |
| Maintainers | vilic |
| Keywords | semver, match, algorithm |

## Links

- npm: https://www.npmjs.com/package/semver-match
- Repository: https://github.com/vilic/semver-match
- Homepage: https://github.com/vilic/semver-match#readme
- Issues: https://github.com/vilic/semver-match/issues
- npm.io page: https://npm.io/package/semver-match

## Dependencies (1)

- [semver](https://npm.io/package/semver.md) ^5.1.0

## Recent versions

- 0.1.1 (latest) — 2016-05-27
- 0.1.0 — 2016-05-27

## README

[![NPM Package](https://badge.fury.io/js/semver-match.svg)](https://www.npmjs.com/package/semver-match)
[![Build Status](https://travis-ci.org/vilic/semver-match.svg)](https://travis-ci.org/vilic/semver-match)

# Semver Match

A simple function that conforms npm package version matching behavior.

## Install

```sh
npm install semver-match --save
```

## Usage

```ts
import match from 'semver-match';

match('^0.1.0', ['0.1.0', '0.1.1', '0.2.0']); // "0.1.1"
match('*', ['0.1.0', '0.2.0'], { latest: '0.1.0' }); // "0.1.0"
match('next', ['0.1.0', '0.2.0'], { latest: '0.1.0', next: '0.2.0' }); // "0.2.0"
```

## License

MIT License.

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