{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.4.0","author":{"name":"Domenic Denicola","email":"domenic@domenicdenicola.com","url":"http://domenic.me/"},"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":"^2.5.4"},"gitHead":"b9d36d4f82c26560acdadbabbb10ddba46a30dc5","homepage":"https://github.com/domenic/opener","_id":"opener@1.4.0","_shasum":"d11f86eeeb076883735c9d509f538fe82d10b941","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"domenic","email":"domenic@domenicdenicola.com"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"}],"dist":{"shasum":"d11f86eeeb076883735c9d509f538fe82d10b941","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.4.0.tgz","integrity":"sha512-/fnSWlsKW3VxYs+N44uxUrjhD+pOMo+tptVK+Y0BUky6ECI6suCAKKunNGBgo0HAPY2dLO4DEf7YQuIid8izwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyoQPeqWwa9Hg8JYjSjavNofW5f1agYrSBLUjvDSjxtAIhAIGzHZsIuerhQVmXUKGfLxEtLVqEySekSMN6nWxlrnK0"}],"size":2252,"noattachment":false,"key":"/opener/-/opener-1.4.0.tgz"},"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":1408593932924,"_cnpm_publish_time":1408593932924,"dist-tags":{"latest":"1.5.2"}}