Welcome to mirror list, hosted at ThFree Co, Russian Federation.

package.json « opener « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 436f68ba6aa908a46ae41017261a2ee4e7a49bcb (plain)
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
{
  "name": "opener",
  "description": "Opens stuff, like webpages and files and executables, cross-platform",
  "version": "1.2.0",
  "author": {
    "name": "Domenic Denicola",
    "email": "domenic@domenicdenicola.com",
    "url": "http://domenicdenicola.com"
  },
  "license": "WTFPL",
  "repository": {
    "type": "git",
    "url": "git://github.com/domenic/opener.git"
  },
  "bugs": {
    "url": "http://github.com/domenic/opener/issues"
  },
  "main": "opener.js",
  "bin": {
    "opener": "opener.js"
  },
  "scripts": {
    "lint": "jshint opener.js --show-non-errors"
  },
  "devDependencies": {
    "jshint": ">= 0.7.3"
  },
  "readme": "# It Opens Stuff\n\nThat is, in your desktop environment. This will make *actual windows pop up*, with stuff in them:\n\n```bash\nnpm install opener -g\n\nopener http://google.com\nopener ./my-file.txt\nopener firefox\nopener npm run lint\n```\n\nAlso if you want to use it programmatically you can do that too:\n\n```js\nvar opener = require(\"opener\");\n\nopener(\"http://google.com\");\nopener(\"./my-file.txt\");\nopener(\"firefox\");\nopener(\"npm run lint\");\n```\n\n## Use It for Good\n\nLike opening the user's browser with a test harness in your package's test script:\n\n```json\n{\n    \"scripts\": {\n        \"test\": \"opener ./test/runner.html\"\n    },\n    \"devDependencies\": {\n        \"opener\": \"*\"\n    }\n}\n```\n\n## Why\n\nBecause Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least\n[according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all\nthree. Like Node.js. And Opener.\n",
  "_id": "opener@1.2.0",
  "dist": {
    "shasum": "cf70d00a43375f86d8789933fa2c99c3190212bd"
  },
  "_from": "git://github.com/isaacs/opener"
}