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

yrn

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yrn

A package manager that behaves like NPM but uses the faster Yarn.

latest
Source
npmnpm
Version
1.1.9
Version published
Weekly downloads
73
135.48%
Maintainers
1
Weekly downloads
 
Created
Source

yrn

A package manager that behaves like npm but is ~2.4 times faster.

npm install -g yarn # yrn relies on `yarn` for actual pkg management
npm install -g yrn

yrn takes all install calls and forwards them to yarn. All other calls will be forwarded to npm.

In depth: It will remove the yarn.lock file as well as the added dependencies.It will restore the deleted files innode_packages and gets rid of node_modules/.yarn-integrity. Exception: previously existing yarn files will be kept.

Usage

yrn install --save-dev standard tape # uses `yarn` to install
yrn uninstall --save-dev tape # uses `npm` to uninstall

CLI

All calls to yarn cause it to create a yarn.lock and a node_modules/.yarn-integrity. We delete them automatically afterwards if they weren't there before.

yrn install

Is equivalent to npm install but actually calls yarn install. It will restore all packages that yarn deletes.

yrn install [pkgName, ...]

Is equivalent to npm install [pkgName, ...] but actually calls yarn add [pkgName, ...] and then removes any new package.json entries that yarn made.

yrn install --save [pkgName, ...], yrn install --save-dev [pkgName, ...]

Is equivalent to npm install --save [pkgName, ...] but actually calls yarn add [--dev] [pkgName, ...].

yrn [cmd] [args]

Calls npm [cmd] [args].

License

MIT

Keywords

npm

FAQs

Package last updated on 17 Apr 2017

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