Check
package.json
for the given script.
$ npm install --save npm-has-script
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.
npm-has-script-cli
CLI for this module
ISC