by-yarn

1.0.0 • Public • Published

by-yarn

NPM version NPM downloads Build Status

Install

$ npm install --save by-yarn

Usage

// require it in your module
const byYarn = require('by-yarn')
 
if (byYarn()) {
  console.log('Woot, this module is installed by Yarn!')
}

API

byYarn(cwd)

cwd

Type: string
Default: process.cwd()

The path to the directory that may contain a yarn.lock

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © EGOIST

Readme

Keywords

Package Sidebar

Install

npm i by-yarn

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rem