{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.4.2","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"(WTFPL OR MIT)","repository":{"type":"git","url":"git+https://github.com/domenic/opener.git"},"main":"opener.js","bin":{"opener":"opener.js"},"files":["opener.js"],"scripts":{"lint":"jshint opener.js"},"devDependencies":{"jshint":"^2.6.3"},"gitHead":"ef28bf7c20de6cea3ff0e9bf0294a78c237e716d","bugs":{"url":"https://github.com/domenic/opener/issues"},"homepage":"https://github.com/domenic/opener#readme","_id":"opener@1.4.2","_shasum":"b32582080042af8680c389a499175b4c54fff523","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"shasum":"b32582080042af8680c389a499175b4c54fff523","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.4.2.tgz","integrity":"sha512-v3eJ0jIjGRZNHL/qdXAACJyfQ2w9IBfpNvGkev0p5ip59BUUu8Sd2qS6hKckJ3EgQLd4JiqyVD53feC5rCmnbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Sc3sC9idZAmIRZYgqTweJUsbvBZi07pZK72V2odaRQIhAKzZ1XoV7Jk1VbvrHuZ8k/55JOkymzeZidH7iHXxcv6I"}],"size":2312,"noattachment":false,"key":"/opener/-/opener-1.4.2.tgz"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/opener-1.4.2.tgz_1473551216353_0.850118016358465"},"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":1473551218033,"_cnpm_publish_time":1473551218033,"dist-tags":{"latest":"1.5.2"}}