npm.io
1.0.2 • Published 7 years ago

npm-check-command

Licence
MIT
Version
1.0.2
Deps
1
Size
9 kB
Vulns
0
Weekly
0
Stars
2

Check Command

A small node module to check if npm commands are present

Installation

$ npm install npm-check-command --save

Usage

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

checkCommand('build', 'package.json'); // => true or false
Typescript
import { checkCommand } from 'npm-check-command';

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

Test

$ npm test