Skip to content

purposeindustries/npm-has-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-has-script Build Status

Check package.json for the given script.

install

Install the package with npm:

$ npm install --save npm-has-script

api

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

license

ISC

About

Check package.json for the given script

Resources

Stars

Watchers

Forks

Packages

No packages published