# compatible-version

> Test if version-ish string is compatible with current Node version

Latest version **1.0.0** (published 2019-07-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-11 |
| First published | 2019-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Eckermann |
| Maintainers | ecrmnn |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2019-07-11

## README

# compatible-version
> Test if version-ish string is compatible with current Node version

[![Travis](https://img.shields.io/travis/ecrmnn/compatible-version.svg?style=flat-square)](https://travis-ci.org/ecrmnn/compatible-version.svg?branch=master)
[![npm version](https://img.shields.io/npm/v/compatible-version.svg?style=flat-square)](http://badge.fury.io/js/compatible-version)
[![npm downloads](https://img.shields.io/npm/dm/compatible-version.svg?style=flat-square)](http://badge.fury.io/js/compatible-version)
[![npm license](https://img.shields.io/npm/l/compatible-version.svg?style=flat-square)](http://badge.fury.io/js/compatible-version)
[![eslint](https://img.shields.io/badge/code_style-airbnb-blue.svg?style=flat-square)](https://github.com/airbnb/javascript)

### Installation
```bash
npm install compatible-version --save
```

### Usage
```js
const compatible = require('compatible-version');

// Given Node.js 8.10.0
compatible('v8.10.0');
//=> true

// Given Node.js 8.10.0
compatible('8.10');
//=> true

// Given Node.js 8.10.0
compatible('v8');
//=> true

// Given Node.js 8.10.0
compatible('v8.10.2');
//=> false

// Given Node.js 8.10.0
compatible('8.8');
//=> false

// Given Node.js 8.10.0
compatible('v10');
//=> false
```

### License
MIT © [Daniel Eckermann](http://danieleckermann.com)

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