npm-has-script

1.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i npm-has-script

Weekly Downloads

3

Version

1.0.3

License

ISC

Last publish

Collaborators

  • lennon