Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/litomore/is-yarn-global

Check if installed by yarn globally without any `fs` calls
https://github.com/litomore/is-yarn-global

global is-yarn-global yarn yarnpkg

Last synced: 3 months ago
JSON representation

Check if installed by yarn globally without any `fs` calls

Awesome Lists containing this project

README

        

# 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/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)