Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.d.ts 869B

123456789101112131415161718192021222324252627282930
  1. /**
  2. Get the name of a Windows version from the release number: `5.1.2600` → `XP`.
  3. @param release - By default, the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).
  4. Note: Most Windows Server versions cannot be detected based on the release number alone. There is runtime detection in place to work around this, but it will only be used if no argument is supplied, or the supplied argument matches `os.release()`.
  5. @example
  6. ```
  7. import * as os from 'os';
  8. import windowsRelease = require('windows-release');
  9. // On a Windows XP system
  10. windowsRelease();
  11. //=> 'XP'
  12. os.release();
  13. //=> '5.1.2600'
  14. windowsRelease(os.release());
  15. //=> 'XP'
  16. windowsRelease('4.9.3000');
  17. //=> 'ME'
  18. ```
  19. */
  20. declare function windowsRelease(release?: string): string;
  21. export = windowsRelease;