Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20 lines
379B

  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;