installed-by-yarn-globally

Check if a directory lies in the directory for globally installed modules of Yarn.

Usage no npm install needed!

<script type="module">
  import installedByYarnGlobally from 'https://cdn.skypack.dev/installed-by-yarn-globally';
</script>

README

installed-by-yarn-globally

NPM version NPM downloads Build Status

Install

$ npm install --save installed-by-yarn-globally

Usage

const isGlobal = require('installed-by-yarn-globally')

isGlobal(__dirname)
//=> false

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