mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-07 19:25:13 +02:00
20 lines
379 B
TypeScript
20 lines
379 B
TypeScript
/**
|
|
Check if your package was installed globally.
|
|
|
|
@example
|
|
```
|
|
import isInstalledGlobally = require('is-installed-globally');
|
|
|
|
// With `npm install your-package`
|
|
console.log(isInstalledGlobally);
|
|
//=> false
|
|
|
|
// With `npm install --global your-package`
|
|
console.log(isInstalledGlobally);
|
|
//=> true
|
|
```
|
|
*/
|
|
declare const isInstalledGlobally: boolean;
|
|
|
|
export = isInstalledGlobally;
|