Questionnaire-of-the-Facebo.../node_modules/is-yarn-global/README.md

29 lines
769 B
Markdown
Raw Permalink Normal View History

2021-03-11 01:43:28 +00:00
# is-yarn-global
[![](https://img.shields.io/travis/LitoMore/is-yarn-global/master.svg)](https://travis-ci.org/LitoMore/is-yarn-global)
[![](https://img.shields.io/npm/v/is-yarn-global.svg)](https://www.npmjs.com/package/is-yarn-global)
[![](https://img.shields.io/npm/l/is-yarn-global.svg)](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE)
[![](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](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)