prefers-yarn

v1.0.1
Check whether the working directory prefers yarn over npm
yarn npm check is use using

prefers-yarn workflow npm

Check whether the working directory prefers yarn over npm

Installation

npm install prefers-yarn

Usage

const prefersYarn = require('prefers-yarn')

const useYarn = prefersYarn() // boolean

if (useYarn) {
  // do stuff
}

License

MIT (c) Cezar Augusto.

npm i prefers-yarn

Metadata

  • MIT
  • >=10
  • Cezar Augusto
  • released 11/14/2020

Downloads

Maintainers