botbook/node_modules/is-installed-globally
Rodrigo Rodriguez 6ae15fe3e5 Updated.
2024-09-04 13:13:15 -03:00
..
index.d.ts Updated. 2024-09-04 13:13:15 -03:00
index.js Updated. 2024-09-04 13:13:15 -03:00
license Updated. 2024-09-04 13:13:15 -03:00
package.json Updated. 2024-09-04 13:13:15 -03:00
readme.md Updated. 2024-09-04 13:13:15 -03:00

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

import isInstalledGlobally from 'is-installed-globally';

// With `npm install your-package`
console.log(isInstalledGlobally);
//=> false

// With `npm install --global your-package`
console.log(isInstalledGlobally);
//=> true