Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 447 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 447 Bytes

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*