19 lines
379 B
TypeScript
19 lines
379 B
TypeScript
/**
|
|
Check if your package was installed globally.
|
|
|
|
@example
|
|
```
|
|
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
|
|
```
|
|
*/
|
|
declare const isInstalledGlobally: boolean;
|
|
|
|
export default isInstalledGlobally;
|