pnpm
Version:
Fast, disk space efficient package manager
117 lines (116 loc) • 4.03 kB
JSON
{
"_args": [
[
{
"raw": "is-installed-globally@^0.1.0",
"scope": null,
"escapedName": "is-installed-globally",
"name": "is-installed-globally",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/update-notifier"
]
],
"_from": "is-installed-globally@>=0.1.0 <0.2.0",
"_id": "is-installed-globally@0.1.0",
"_inCache": true,
"_location": "/is-installed-globally",
"_nodeVersion": "8.0.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/is-installed-globally-0.1.0.tgz_1498431002972_0.9673243085853755"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "4.6.1",
"_phantomChildren": {},
"_requested": {
"raw": "is-installed-globally@^0.1.0",
"scope": null,
"escapedName": "is-installed-globally",
"name": "is-installed-globally",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/update-notifier"
],
"_resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz",
"_shasum": "0dfd98f5a9111716dd535dda6492f67bf3d25a80",
"_shrinkwrap": null,
"_spec": "is-installed-globally@^0.1.0",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/update-notifier",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/is-installed-globally/issues"
},
"dependencies": {
"global-dirs": "^0.1.0",
"is-path-inside": "^1.0.0"
},
"description": "Check if your package was installed globally",
"devDependencies": {
"ava": "*",
"execa": "^0.7.0",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "0dfd98f5a9111716dd535dda6492f67bf3d25a80",
"tarball": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "c8de3eb10412caceb8f005a4ad2b2e91b09caedb",
"homepage": "https://github.com/sindresorhus/is-installed-globally#readme",
"keywords": [
"global",
"package",
"globally",
"module",
"install",
"installed",
"npm",
"yarn",
"is",
"check",
"detect",
"local",
"locally",
"cli",
"bin",
"binary"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "is-installed-globally",
"optionalDependencies": {},
"readme": "# is-installed-globally [](https://travis-ci.org/sindresorhus/is-installed-globally)\n\n> Check if your package was installed globally\n\nCan be useful if your CLI needs different behavior when installed globally and locally.\n\n\n## Install\n\n```\n$ npm install is-installed-globally\n```\n\n\n## Usage\n\n```js\nconst isInstalledGlobally = require('is-installed-globally');\n\n// With `npm install your-package`\nconsole.log(isInstalledGlobally);\n//=> false\n\n// With `npm install --global your-package`\nconsole.log(isInstalledGlobally);\n//=> true\n```\n\n\n## Related\n\n- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module\n- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module\n- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/is-installed-globally.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "0.1.0"
}