CLI which decides to use npm
or yarn
Proof of concept. It's early alpha. You use at your own risk!
- Check for the file
yarn.lock
in the nearest directory - Check if 'yarn' is installed
- Run
yarn
if 1. and 2. aretrue
. Otherwise, runnpm
.
$ npm install -g ynpn
# or
$ yarn global add ynpn
$ ynpm *command*