Skip to content
/ by-yarn Public

[deprecated] Check if your module is installed by Yarn.

License

Notifications You must be signed in to change notification settings

egoist/by-yarn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: undefined

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

About

[deprecated] Check if your module is installed by Yarn.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published