# version-exists

> Check if version of a NPM module exists

Latest version **0.0.4** (published 2018-02-03) · MIT license · 0 weekly downloads

## Install

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

Provides the command `version-exists`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-02-03 |
| First published | 2017-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.6.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ntwcklng |
| Maintainers | ntwcklng |
| Keywords | cli, command, arguments, util, bin, version, check |

## Links

- npm: https://www.npmjs.com/package/version-exists
- Repository: https://github.com/ntwcklng/version-exists
- Homepage: https://github.com/ntwcklng/version-exists#readme
- Issues: https://github.com/ntwcklng/version-exists/issues
- npm.io page: https://npm.io/package/version-exists

## Dependencies (4)

- [args](https://npm.io/package/args.md) 3.0.8
- [chalk](https://npm.io/package/chalk.md) 2.3.0
- [npm-name](https://npm.io/package/npm-name.md) 3.1.0
- [node-fetch](https://npm.io/package/node-fetch.md) 1.7.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2018-02-03
- 0.0.3 — 2017-04-26
- 0.0.2 — 2017-04-26
- 0.0.1 — 2017-04-26

## README

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

> Check if a version for a NPM modul exists.


## Install

```
$ npm install --save version-exists
```


## Usage

```js
const versionExists = require('version-exists')

versionExists('args', '2.6.0').then(exists => console.log(exists)) //=> true
versionExists('args', '99.6.0').then(exists => console.log(exists)) //=> false
versionExists('argsfkgmnghjghjrihgjkrg', '2.6.0').then(exists => console.log(exists)) //=> Error > Cannot find argsfkgmnghjghjrihgjkrg in the NPM registry

```

## API

### versionExists(module, version)

Returns a promise for a boolean.

#### module

Type: `String`

Module to check.

#### version

Type: `String`

Version you want to check.

## CLI

### Install

```
$ npm install -g version-exists
```

```sh
❯ version-exists args 2.6.0

    Version 2.6.0 of the module args exist!
  

❯ version-exists args 99.6.0

    Version 99.6.0 of the module args does not exist!
  

❯ version-exists arsdgfghdhtdhtzjnrzjnrzjrjgs 2.6.0

    Error > Cannot find arsdgfghdhtdhtzjnrzjnrzjrjgs in the NPM registry

```

## License

MIT © [Marvin Mieth](https://ntwcklng.now.sh)

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