28 lines
637 B
Plaintext
28 lines
637 B
Plaintext
# 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)
|