prefers-yarn

1.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    329
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    329
  • 1.0.0
    3

Package Sidebar

Install

npm i prefers-yarn

Weekly Downloads

327

Version

1.0.1

License

MIT

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • cezaraugusto