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

index.d.ts 714B

12345678910111213141516171819202122232425262728293031323334353637
  1. /// <reference types="node"/>
  2. /**
  3. Get the name of the current operating system.
  4. By default, the name of the current operating system is returned.
  5. @param platform - Custom platform name.
  6. @param release - Custom release name.
  7. @example
  8. ```
  9. import * as os fron 'os';
  10. import osName = require('os-name');
  11. // On a macOS Sierra system
  12. osName();
  13. //=> 'macOS Sierra'
  14. osName(os.platform(), os.release());
  15. //=> 'macOS Sierra'
  16. osName('darwin', '14.0.0');
  17. //=> 'OS X Yosemite'
  18. osName('linux', '3.13.0-24-generic');
  19. //=> 'Linux 3.13'
  20. osName('win32', '6.3.9600');
  21. //=> 'Windows 8.1'
  22. ```
  23. */
  24. declare function osName(): string;
  25. declare function osName(platform: NodeJS.Platform, release: string): string;
  26. export = osName;