1.0.1 • Published 5 years ago

prefers-yarn v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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.