1.0.0 • Published 8 years ago
by-yarn v1.0.0
by-yarn
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
1.0.0
8 years ago