Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/litomore/is-yarn-global
- Owner: LitoMore
- License: mit
- Created: 2018-01-12T03:21:31.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T07:49:34.000Z (about 2 years ago)
- Last Synced: 2024-10-19T00:59:47.903Z (4 months ago)
- Topics: global, is-yarn-global, yarn, yarnpkg
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)