index.d.ts 379 B

12345678910111213141516171819
  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;