# npm-exists

> check if a package exists on npm

Latest version **1.0.1** (published 2018-02-26) · MIT license · 0 weekly downloads

## Install

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

Provides the command `npm-exists`.

## 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.1 |
| Published | 2018-02-26 |
| First published | 2014-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Andrea Parodi |
| Maintainers | parroit |
| Keywords | package, check, exists, npm, search, yarn |

## Links

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

## Dependencies (1)

- [got](https://npm.io/package/got.md) ^8.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-02-26
- 0.1.0 — 2014-07-19

## README

# npm-exists

[![Greenkeeper badge](https://badges.greenkeeper.io/parro-it/npm-exists.svg)](https://greenkeeper.io/)

check if a package exists on npm

[![Build Status](https://secure.travis-ci.org/parro-it/npm-exists.png?branch=master)](http://travis-ci.org/parro-it/npm-exists)
[![NPM module](https://img.shields.io/npm/v/npm-exists.svg)](https://npmjs.org/package/npm-exists)
[![NPM downloads](https://img.shields.io/npm/dt/npm-exists.svg)](https://npmjs.org/package/npm-exists)

# Getting Started

__Install__:

```sh
npm install npm-exists --save
```

__Usage__:

```js
const exists = require('npm-exists');

exists('request')
	.then(moduleExists => {
		if (moduleExists) {
			console.log('gosh, `request` name already taken!');
		} else {
			console.log('you can register `request`');
		}
	});

// use custom registry:
exists('request', 'http://localhost:5432/')
	.then(moduleExists => {
		console.log(moduleExists);
	});
```

# License

MIT © 2016, Andrea Parodi

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