index.js 226 Bytes Raw Blame History Permalink 1 2 3 4 5 'use strict'; const globalDirs = require('global-dirs'); const isPathInside = require('is-path-inside'); module.exports = isPathInside(__dirname, globalDirs.yarn.packages) || isPathInside(__dirname, globalDirs.npm.packages);