forked from goliasse/opencbs-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 2.36 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
57
58
59
60
{
"name": "os-name",
"version": "0.1.2",
"description": "Get the name of the current operating system. Example: OS X Mavericks",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/os-name"
},
"bin": {
"os-name": "cli.js"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli",
"bin",
"os",
"operating",
"system",
"platform",
"name",
"title",
"release",
"version",
"osx",
"windows",
"linux"
],
"dependencies": {
"minimist": "^0.1.0",
"osx-release": "^0.1.0"
},
"devDependencies": {
"mocha": "*"
},
"readme": "# os-name [![Build Status](https://travis-ci.org/sindresorhus/os-name.svg?branch=master)](https://travis-ci.org/sindresorhus/os-name)\n\n> Get the name of the current operating system. Example: `OS X Mavericks`\n\nUseful for analytics and debugging.\n\n\n## Install\n\n```sh\n$ npm install --save os-name\n```\n\n\n## Usage\n\n```js\nvar os = require('os');\nvar osName = require('os-name');\n\n// on an OS X Mavericks system\n\nosName();\n//=> OS X Mavericks\n\nosName(os.platform(), os.release());\n//=> OS X Mavericks\n\nosName(os.platform());\n//=> OS X\n\nosName('linux', '3.13.0-24-generic');\n//=> Linux 3.13\n\nosName('win32', '6.3.9600');\n//=> Windows 8.1\n\nosName('win32');\n// Windows\n```\n\n\n## API\n\n### osName([platform, release])\n\nBy default the name of the current operating system is returned.\n\nYou can optionally supply a custom [`os.platform()`](http://nodejs.org/api/os.html#os_os_platform) and [`os.release()`](http://nodejs.org/api/os.html#os_os_release).\n\n\n## CLI\n\n```sh\n$ npm install --global os-name\n```\n\n```sh\n$ os-name --help\n\nExample\n $ os-name\n OS X Mavericks\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/os-name/issues"
},
"homepage": "https://github.com/sindresorhus/os-name",
"_id": "os-name@0.1.2",
"_shasum": "15d391987711b8838566993c4606e8691bb94c58",
"_from": "os-name@^0.1.2",
"_resolved": "https://registry.npmjs.org/os-name/-/os-name-0.1.2.tgz"
}