# npm-check-command

> Check if a command is present in the package.json

Latest version **1.0.2** (published 2018-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-check-command
pnpm add npm-check-command
yarn add npm-check-command
bun add npm-check-command
```

## 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.2 |
| Published | 2018-12-07 |
| First published | 2018-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Josh Ghent |
| Maintainers | joshghent |

## Links

- npm: https://www.npmjs.com/package/npm-check-command
- Repository: https://github.com/joshghent/npm-check-command
- Homepage: https://github.com/joshghent/npm-check-command#readme
- Issues: https://github.com/joshghent/npm-check-command/issues
- npm.io page: https://npm.io/package/npm-check-command

## Dependencies (1)

- [callsites](https://npm.io/package/callsites.md) ^3.0.0

## Recent versions

- 1.0.2 (latest) — 2018-12-07

## README

# Check Command
> A small node module to check if npm commands are present

## Installation
```
$ npm install npm-check-command --save
```

## Usage

### Javascript
```javascript
var checkCommand = require('npm-check-command');

checkCommand('build', 'package.json'); // => true or false
```

### Typescript
```typescript
import { checkCommand } from 'npm-check-command';

checkCommand('build', 'package.json'); // => true or false
```

## Test
```sh
$ npm test
```

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