mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
379 B
TypeScript
20 lines
379 B
TypeScript
3 years ago
|
/**
|
||
|
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;
|