-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
56 lines (56 loc) · 2.72 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "osx-release",
"version": "1.0.0",
"description": "Get the name and version of a OS X release from the Darwin version. Example: 13.2.0 → {name: 'Mavericks', version: '10.9'}",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/sindresorhus/osx-release"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bin": {
"osx-release": "cli.js"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli",
"bin",
"os",
"osx",
"darwin",
"operating",
"system",
"platform",
"name",
"title",
"release",
"version"
],
"dependencies": {
"minimist": "^1.1.0"
},
"devDependencies": {
"mocha": "*"
},
"readme": "# osx-release [![Build Status](https://travis-ci.org/sindresorhus/osx-release.svg?branch=master)](https://travis-ci.org/sindresorhus/osx-release)\n\n> Get the name and version of a OS X release from the Darwin version. \n> Example: `13.2.0` → `{name: 'Mavericks', version: '10.9'}`\n\n\n## Install\n\n```sh\n$ npm install --save osx-release\n```\n\n\n## Usage\n\n```js\nvar os = require('os');\nvar osxRelease = require('osx-release');\n\n// on an OS X Mavericks system\n\nosxRelease();\n//=> {name: 'Mavericks', version: '10.9'}\n\nos.release();\n//=> 13.2.0\n// this is the Darwin kernel version\n\nosxRelease(os.release());\n//=> {name: 'Mavericks', version: '10.9'}\n\nosxRelease('14.0.0');\n//=> {name: 'Yosemite', version: '10.10'}\n```\n\n\n## API\n\n### osRelease([release])\n\n#### release\n\nType: `string`\n\nBy default the current OS is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release).\n\n\n## CLI\n\n```sh\n$ npm install --global osx-release\n```\n\n```sh\n$ osx-release --help\n\n Usage\n osx-release [release]\n\n Example\n osx-release\n Mavericks 10.9\n\n osx-release 14.0.0\n Yosemite 10.10\n```\n\n\n## Related\n\n- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system. Example: `OS X Mavericks`\n- [osx-version](https://github.com/sindresorhus/osx-version) - Get the OS X version of the current system. Example: `10.9.3`\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/osx-release/issues"
},
"homepage": "https://github.com/sindresorhus/osx-release",
"_id": "osx-release@1.0.0",
"_from": "osx-release@^1.0.0"
}