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: 12 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 (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T07:49:34.000Z (over 3 years ago)
- Last Synced: 2024-10-19T00:59:47.903Z (over 1 year 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://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)