is-yarn-global
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = function () { | ||
const isWindows = process.platform === 'win32' || process.env.OSTYPE === 'cygwin' || process.env.OSTYPE === 'msys'; | ||
const isWindows = process.platform === 'win32'; | ||
const yarnPath = isWindows ? path.join('Yarn', 'config', 'global') : path.join('.config', 'yarn', 'global'); | ||
@@ -9,0 +9,0 @@ if (process.cwd().includes(yarnPath)) { |
{ | ||
"name": "is-yarn-global", | ||
"version": "0.1.0", | ||
"description": "Check if installed by yarn globally without `fs` calls", | ||
"version": "0.2.0", | ||
"description": "Check if installed by yarn globally without any `fs` calls", | ||
"repository": "git@github.com:LitoMore/is-yarn-global.git", | ||
@@ -6,0 +6,0 @@ "author": "LitoMore (litomore@gmail.com)", |
# is-yarn-global | ||
Check if installed by yarn globally without `fs` calls | ||
[![](https://img.shields.io/travis/LitoMore/is-yarn-global/master.svg)](https://travis-ci.org/LitoMore/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/sindresorhus/xo) | ||
Check if installed by yarn globally without any `fs` calls | ||
## Install | ||
@@ -6,0 +11,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2556
5
29
1