1.0.3 • Published 9 years ago
npm-has-script v1.0.3
npm-has-script 
Check
package.jsonfor the given script.
install
$ npm install --save npm-has-scriptapi
has(name: string, dir = '.'): bool
Returns true if the package.json in the given dir has an npm script named name.
It throws if the dir does not contain a package.json file, or name is not a string.
related
npm-has-script-cliCLI for this module
license
ISC