{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.0.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"},"_id":"opener@1.0.0","dist":{"shasum":"355bcdf938f918b2723d2fd2293367976c0798c8","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.0.0.tgz","integrity":"sha512-IGM6TivaF8eRMMssdq/2LTdplHOHFyXCKuEruvsR6N0PwkSzL5m3q/E6lQvNXXIdCBAHm1jMY6rmJ+gbrEGoZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9eqgR9IT+S9n9x6ctQ3jooXgsKGv6FdTMgqOUHNtscgIhAIxjmsYLY005ajbC+C0gGe3bBzCmzUTQnOxdRueu507b"}],"size":1592,"noattachment":false,"key":"/opener/-/opener-1.0.0.tgz"},"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":1344250737376,"_cnpm_publish_time":1344250737376,"dist-tags":{"latest":"1.5.2"}}