29 lines
769 B
Markdown
29 lines
769 B
Markdown
# is-yarn-global
|
|
|
|
[](https://travis-ci.org/LitoMore/is-yarn-global)
|
|
[](https://www.npmjs.com/package/is-yarn-global)
|
|
[](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE)
|
|
[](https://github.com/sindresorhus/xo)
|
|
|
|
Check if installed by yarn globally without any `fs` calls
|
|
|
|
## Install
|
|
|
|
```bash
|
|
$ npm install is-yarn-global
|
|
```
|
|
|
|
## Usage
|
|
|
|
Just require it in your package.
|
|
|
|
```javascript
|
|
const isYarnGlobal = require('is-yarn-global');
|
|
|
|
console.log(isYarnGlobal());
|
|
```
|
|
|
|
## License
|
|
|
|
MIT © [LitoMore](https://github.com/LitoMore)
|