1.0.0 • Published 8 years ago

by-yarn v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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

1.0.0

8 years ago