🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

yarn-only

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

yarn-only

When used prevents developers from installing using npm

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Yarn Only

Simple module to prevent user from running a full install with anything apart from yarn. E.g. the command: npm install

!! Warning !! Due to the way the preinstall script works individual modules may still be installed with the npm install <module name> command. Which may result in files being generated like a package-lock.json file.

Usage

  • yarn add yarn-only

  • Add the following to your package.json:

"scripts": {
  "preinstall": "yarn-only"
}

Keywords

cli-app

FAQs

Package last updated on 26 Oct 2018

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