Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-yarn-global

LitoMore23mMIT0.4.1TypeScript support: included

Check if installed by yarn globally without any fs calls

readme

is-yarn-global

Check if installed by yarn globally without any fs calls

Install

$ npm install is-yarn-global

Usage

Just require it in your package.

import isYarnGlobal from 'is-yarn-global';

console.log(isYarnGlobal());

License

MIT © LitoMore