🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

install-scripts

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

install-scripts

disclose scripts running on `npm install`

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

install-scripts

This package is to disclose scripts running on npm install.

npm install --save-dev install-scripts

CLI

# install dependencies without running scripts
% npm install --ignore-scripts
% npx install-scripts
fsevents
  scripts:
    install: node install
  paths:
    node_modules/fsevents/package.json
puppeteer
  scripts:
    install: node install.js
  paths:
    node_modules/puppeteer/package.json
styled-components
  scripts:
    postinstall: node ./scripts/postinstall.js || exit 0
  paths:
    node_modules/styled-components/package.json

// or
% npx install-scripts path/to/project/node_modules

Node API

const installScripts = require("install-scripts");
(async () => {
  const result = await installScripts(target);
  Object.values(result).forEach(({ paths, scripts, name}) => {
    console.log(name, scripts, paths);
  });
})();

Keywords

npm

FAQs

Package last updated on 11 Nov 2021

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