{"_id":"is-installed-globally@1.0.1","bugs":{"url":"https://github.com/sindresorhus/is-installed-globally/issues"},"dist":{"shasum":"50d161ac1eaa47e1b75a7f4906f82527d73929df","tarball":"http://registry-npm.ywwl.com/is-installed-globally/download/is-installed-globally-1.0.1.tgz","fileCount":5,"integrity":"sha512-li88H4QGRoNMX27jEmY8nR515oJVspAgC/WFMlhHfFV8RJ4QyGpHhXnwAe9gH5RIgKmdYRUmrOhQobcgEjIdSw==","signatures":[{"sig":"MEYCIQDSKuK9HfL0Paj4GG0U6NmeyeMhJYcW80Aht4AakFzwsgIhAI4YUA61hiEF8EbiBzzI59D0J/Yx/eXjmFczXyku1sUG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFlYqyeDJkO7B3Q2eUYywNNc4VB/opXMXgzRcfYHAl6CAiEAhm7WHG+uW1Fzi56kpQG8EwPjAX7zvYPDdyoIbuYcjxM="}],"unpackedSize":4853,"size":2172,"noattachment":false,"key":"/is-installed-globally/-/is-installed-globally-1.0.1.tgz"},"name":"is-installed-globally","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"376b0e26932038166cb540092c4e17e171f8980f","license":"MIT","scripts":{"test":"xo && ava && tsd"},"version":"1.0.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"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"],"repository":{"url":"git+https://github.com/sindresorhus/is-installed-globally.git","type":"git"},"_npmVersion":"12.0.1","description":"Check if your package was installed globally","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.9.0","dependencies":{"is-path-inside":"^4.0.0","global-directory":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","cpy":"^8","del":"^7.1.0","tsd":"^0.29.0","execa":"^8.0.1","make-dir":"^4.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-installed-globally_1.0.1_1790050523252_0.44930686960734123"},"readme":"# 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## Install\n\n```sh\nnpm install is-installed-globally\n```\n\n## Usage\n\n```js\nimport isInstalledGlobally from '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## 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-directory](https://github.com/sindresorhus/global-directory) - Get the directory of globally installed packages and binaries\n","publish_time":1790050523351,"_cnpm_publish_time":1790050523351,"dist-tags":{"latest":"1.0.1"}}