编辑 | blame | 历史 | 原始文档

is-yarn-global

![](https://travis-ci.org/LitoMore/is-yarn-global)
![](https://www.npmjs.com/package/is-yarn-global)
![](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE)
![](https://github.com/sindresorhus/xo)

Check if installed by yarn globally without any fs calls

Install

$ npm install is-yarn-global

Usage

Just require it in your package.

const isYarnGlobal = require('is-yarn-global');

console.log(isYarnGlobal());

License

MIT © LitoMore