npm-check-command
v1.0.2
Published
Check if a command is present in the package.json
Downloads
4
Readme
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