# npm-available

> Check if a given module name is available on npm - available as CLI & API

Latest version **1.2.1** (published 2015-11-24) · MIT license · 0 weekly downloads

## Install

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

Provides the command `npm-available`.

## 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.2.1 |
| Published | 2015-11-24 |
| First published | 2015-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Thomas Watson Steen |
| Maintainers | watson |
| Keywords | cli, npm, module, name, available, check |

## Links

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

## Dependencies (2)

- [once](https://npm.io/package/once.md) ^1.3.3
- [minimist](https://npm.io/package/minimist.md) ^1.1.1

## 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

- 1.2.1 (latest) — 2015-11-24
- 1.2.0 — 2015-11-24
- 1.1.3 — 2015-06-21
- 1.1.2 — 2015-06-21
- 1.1.1 — 2015-06-21
- 1.1.0 — 2015-06-21
- 1.0.2 — 2015-06-21
- 1.0.1 — 2015-06-20
- 1.0.0 — 2015-06-20

## README

# npm-available

Check if a given module name is available on npm. Available as CLI and
module API.

[![Build status](https://travis-ci.org/watson/npm-available.svg?branch=master)](https://travis-ci.org/watson/npm-available)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Installation

To use on the command line, install globally using:

```
npm install -g npm-available
```

To use programmatically, install locally:

```
npm install --save npm-available
```

## CLI Usage

After you've installed npm-available globally, just run:

```
$ npm-available my-awesome-module
Too late! my-awesome-module is taken :(
```

### Options

```
npm-available [options] [name]
```

Where `name` is the name of a module you whish to check.

**Options:**

```
  --help, -h     show this help
  --version, -v  show version
  --quiet, -q    don't output anything (check the exit code instead)
```

The command will exit with a non-zero exit code if the module name is
already taken.

## Programmatic Usage

```js
var npmAvailable = require('npm-available')

npmAvailable('my-awesome-module', function (err, available) {
  if (err) throw err
  if (available) console.log('%s is available', name)
  else console.log('%s is already taken', name)
})
```

## License

MIT

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