{ "name": "win-release", "version": "1.0.0", "description": "Get the name of a Windows version from the release number: 5.1.2600 → XP", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/win-release" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "node test.js" }, "files": [ "index.js" ], "keywords": [ "os", "win", "win32", "windows", "operating", "system", "platform", "name", "title", "release", "version" ], "devDependencies": { "ava": "0.0.4" }, "readme": "# win-release [![Build Status](https://travis-ci.org/sindresorhus/win-release.svg?branch=master)](https://travis-ci.org/sindresorhus/win-release)\n\n> Get the name of a Windows version from the release number: `5.1.2600` → `XP`\n\n\n## Install\n\n```sh\n$ npm install --save win-release\n```\n\n\n## Usage\n\n```js\nvar os = require('os');\nvar winRelease = require('win-release');\n\n// on a Windows XP system\n\nwinRelease();\n//=> 'XP'\n\nos.release();\n//=> '5.1.2600'\n\nwinRelease(os.release());\n//=> 'XP'\n\nwinRelease('4.9.3000');\n//=> 'ME'\n```\n\n\n## API\n\n### winRelease([release])\n\n#### release\n\nType: `string`\n\nBy 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).\n\n\n## Related\n\n- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system.\n- [osx-release](https://github.com/sindresorhus/osx-release) - Get the name and version of a OS X release from the Darwin version.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/win-release/issues" }, "homepage": "https://github.com/sindresorhus/win-release", "_id": "win-release@1.0.0", "_shasum": "8993308dedbd8d30ad5594b6b7382a8c1d96ae5a", "_from": "win-release@^1.0.0", "_resolved": "https://registry.npmjs.org/win-release/-/win-release-1.0.0.tgz" }