blob: 6695a7196c9c69976ca757db8f218a93c2eceeb5 [file] [log] [blame]
{
"_from": "opener@>=1.4.1 <1.5.0",
"_id": "opener@1.4.1",
"_location": "/npm/opener",
"_nodeVersion": "1.5.1",
"_npmUser": {
"email": "d@domenic.me",
"name": "domenic"
},
"_npmVersion": "2.7.0",
"_phantomChildren": {},
"_requiredBy": [
"/npm"
],
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.4.1.tgz",
"_shasum": "897590acd1aed3311b703b58bccb4d43f56f2895",
"_shrinkwrap": null,
"author": {
"email": "d@domenic.me",
"name": "Domenic Denicola",
"url": "https://domenic.me/"
},
"bin": {
"opener": "opener.js"
},
"bugs": {
"url": "https://github.com/domenic/opener/issues"
},
"dependencies": {},
"description": "Opens stuff, like webpages and files and executables, cross-platform",
"devDependencies": {
"jshint": "^2.6.3"
},
"directories": {},
"dist": {
"shasum": "897590acd1aed3311b703b58bccb4d43f56f2895",
"tarball": "http://registry.npmjs.org/opener/-/opener-1.4.1.tgz"
},
"files": [
"opener.js"
],
"gitHead": "d0ee95b19951703462fa593baa16e81fdff7827c",
"homepage": "https://github.com/domenic/opener",
"license": "WTFPL",
"main": "opener.js",
"maintainers": [
{
"email": "domenic@domenicdenicola.com",
"name": "domenic"
}
],
"name": "opener",
"optionalDependencies": {},
"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\nPlus, it returns the child process created, so you can do things like let your script exit while the window stays open:\n\n```js\nvar editor = opener(\"documentation.odt\");\neditor.unref();\n// These other unrefs may be necessary if your OS's opener process\n// exits before the process it started is complete.\neditor.stdin.unref();\neditor.stdout.unref();\neditor.stderr.unref();\n```\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",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/domenic/opener.git"
},
"scripts": {
"lint": "jshint opener.js"
},
"version": "1.4.1"
}