Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.0 KiB

  1. # win-release [![Build Status](https://travis-ci.org/sindresorhus/win-release.svg?branch=master)](https://travis-ci.org/sindresorhus/win-release)
  2. > Get the name of a Windows version from the release number: `5.1.2600` → `XP`
  3. ## Install
  4. ```
  5. $ npm install --save win-release
  6. ```
  7. ## Usage
  8. ```js
  9. var os = require('os');
  10. var winRelease = require('win-release');
  11. // on a Windows XP system
  12. winRelease();
  13. //=> 'XP'
  14. os.release();
  15. //=> '5.1.2600'
  16. winRelease(os.release());
  17. //=> 'XP'
  18. winRelease('4.9.3000');
  19. //=> 'ME'
  20. ```
  21. ## API
  22. ### winRelease([release])
  23. #### release
  24. Type: `string`
  25. By default the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release).
  26. ## Related
  27. - [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system
  28. - [osx-release](https://github.com/sindresorhus/osx-release) - Get the name and version of a OS X release from the Darwin version
  29. ## License
  30. MIT © [Sindre Sorhus](http://sindresorhus.com)