is-yarn-global
Version:
Check if installed by yarn globally without any `fs` calls
28 lines (17 loc) • 637 B
Markdown
# is-yarn-global
[](https://www.npmjs.com/package/is-yarn-global)
[](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE)
[](https://github.com/xojs/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
import isYarnGlobal from 'is-yarn-global';
console.log(isYarnGlobal());
```
## License
MIT © [LitoMore](https://github.com/LitoMore)