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

tyczynski/ypmn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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*