🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

limit-package-install

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

limit-package-install

## Usage in package.json

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
107
-38.86%
Maintainers
1
Weekly downloads
 
Created
Source

limit install package with npm or pnpm or yarn and remove illegal package

Usage in package.json

  • 默认 包管理器 是 npm
  • 默认 isDeleteIllegalInstallItem 为 true 此字段含义: 如果是非指定 包管理器安装的 npm 包, 则启动一个单独的进程删除 node_modules
  "scripts": {
    "preinstall": "npx limitpackageinstall npm isDeleteIllegalInstallItem=true"
  }

Keywords

limit

FAQs

Package last updated on 27 May 2025

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