{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.3.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"},"devDependencies":{"jshint":">= 0.9.0"},"_id":"opener@1.3.0","dist":{"shasum":"130ba662213fa842edb4cd0361d31a15301a43e2","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.3.0.tgz","integrity":"sha512-sBqelaOnn8SA+zefIj/VMXgIACr6URhyysMn2DEx2fTcbmyDbPf8wWs5rPgoR2SVRBk1oNYl8YE7LwV84FCJCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFLocyqO3b0IuQ5sdd/vmK9mBz2SspHubfuTGyjHBDXAiEAwwIbQZdDvPl4+CFNtGiOPYvCNvHWQomO+smj/RN/OuM="}],"size":1969,"noattachment":false,"key":"/opener/-/opener-1.3.0.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"domenicdenicola","email":"domenic@domenicdenicola.com"},"maintainers":[{"name":"domenicdenicola","email":"domenic@domenicdenicola.com"}],"directories":{},"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## 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 person on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener.\n","publish_time":1347545767936,"_cnpm_publish_time":1347545767936,"dist-tags":{"latest":"1.5.2"}}