New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

npm-has-script

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-has-script

Check npm.scripts for the given script

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

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.

  • npm-has-script-cli CLI for this module

license

ISC

Keywords

npm

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts