{
"_from": "opener@1.5.1",
"_id": "opener@1.5.1",
"_inBundle": false,
"_integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==",
"_location": "/npm/opener",
"_phantomChildren": {},
"_requested": {
"escapedName": "opener",
"fetchSpec": "1.5.1",
"name": "opener",
"raw": "opener@1.5.1",
"rawSpec": "1.5.1",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm"
],
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz",
"_shasum": "6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed",
"_shrinkwrap": null,
"_spec": "opener@1.5.1",
"_where": "/Users/rebecca/code/npm",
"author": {
"email": "d@domenic.me",
"name": "Domenic Denicola",
"url": "https://domenic.me/"
},
"bin": {
"opener": "bin/opener-bin.js"
},
"bugs": {
"url": "https://github.com/domenic/opener/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Opens stuff, like webpages and files and executables, cross-platform",
"devDependencies": {
"eslint": "^5.3.0"
},
"files": [
"bin/",
"lib/"
],
"homepage": "https://github.com/domenic/opener#readme",
"license": "(WTFPL OR MIT)",
"main": "lib/opener.js",
"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 [according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/domenic/opener.git"
},
"scripts": {
"lint": "eslint ."
},
"version": "1.5.1"
}