Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ypmn

tyczynski3MIT0.1.1-alpha

CLI which decides to use npm or yarn

yarn, npm

readme

ynpn (npm > yarn > ynpn)

CLI which decides to use npm or yarn

Proof of concept. It's early alpha. You use at your own risk!

How the decision is made

  1. Check for the file yarn.lock in the nearest directory
  2. Check if 'yarn' is installed
  3. Run yarn if 1. and 2. are true. Otherwise, run npm.

Installation

$ npm install -g ynpn

# or 

$ yarn global add ynpn

Usage

$ ynpm *command*