index.d.ts 379 B

1234567891011121314151617181920
  1. /**
  2. Check if your package was installed globally.
  3. @example
  4. ```
  5. import isInstalledGlobally = require('is-installed-globally');
  6. // With `npm install your-package`
  7. console.log(isInstalledGlobally);
  8. //=> false
  9. // With `npm install --global your-package`
  10. console.log(isInstalledGlobally);
  11. //=> true
  12. ```
  13. */
  14. declare const isInstalledGlobally: boolean;
  15. export = isInstalledGlobally;