Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
usr
›
lib
›
node_modules
›
npm
›
node_modules
›
is-installed-globally
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ readme.md
← Back
# 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)
💻
System Info
Current path
/usr/lib/node_modules/npm/node_modules/is-installed-globally
Contents
0 folders, 4 files
Disk free
100.52 GB
PHP version
8.3.30
🚀
Quick Actions
📍 Script location
🌐 Web root
🗑️ Temp
📁 /usr/lib/node_modules/npm/node_modules/is-installed-globally
⚡ Nexus File Manager • 4 items