Check if a project is using Yarn
$ npm install --global has-yarn-cli
$ has-yarn --help
Usage
$ has-yarn
✔ This project uses Yarn
Options
--quiet Silence output (useful for scripts)
Exits with code 0 if the project uses Yarn, otherwise code 2
- has-yarn - API for this module