{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.5.1","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":"lib/opener.js","bin":{"opener":"bin/opener-bin.js"},"files":["lib/","bin/"],"scripts":{"lint":"eslint ."},"devDependencies":{"eslint":"^5.3.0"},"gitHead":"3deb561d900a268173b79eec0126af30e16d4b4b","bugs":{"url":"https://github.com/domenic/opener/issues"},"homepage":"https://github.com/domenic/opener#readme","_id":"opener@1.5.1","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==","shasum":"6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.5.1.tgz","fileCount":5,"unpackedSize":6198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhMD6CRA9TVsSAnZWagAAlmgQAIzenBHoSpdrU/50aoHj\nDLk8Mrn2hO89/YKl31vNpzCVu6qBpP7WUbHM149TIt/UkDYhKsnjQUUZT+9M\nzOKnOb0EEu3QNl0P1DGUlX5vWJ61j2qbPAPplcQcWJIryjFbWD9CRkH2P89J\nMBqqH4I1nVBEWB7TJOS7kLAPmOvUCD/1U83008AVASCZ8ijeEyV73xTmPpBu\nJsZbOpBbgQCEeXAYf5mpCxcYoGOet8Ip1FFTSXFWfGaakvqpFvMiVKvPoRFK\nKmuc/mxDkqlohu0AxV+vKypI3zU52dh0g+Z8zqYYVudyayE4Cn+5DjqKwMIc\nRYWW2sX7T/GDOerON/G5nbtJhX7nvcn5EFN/Oq1uMd9Y+U7oZ1kkNviVOtDR\nIz192XhqFOU9igyB9TTsE6oNCr8VyG/2dCV1RSUw0ltetveFg3K4wb7D0u9d\nG5BnOqoVIbWVgryixVhA4lmLQRVz1Hj793fDcjW8GAfXSXMT7x/H0VO2bo3C\nPm8XcGOM0IQnMhA9kIKdtu8jV+8tJ8oySJwqoBekf204/vr4JUId+pPveK8T\n2NfBWw+JzdC7nIL9P2knvuBWlNylwke43FlEAz5DDPdoJimA8fY0I8bwtPHZ\nK9bvspQkkGI2ZRyOf0uuMOTc45oAer4oJV9IeNCY52bnhkOm/Yv7vOBpaHax\np2Rh\r\n=5aKy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICF9izDHtjJJX9O/syl0Aa92iOuyb51AzL16zlXo0mSGAiEAtu+caTnpjOWC1P9FhEz+AKsvjZa4Qu+r3D/EQc0WfI8="}],"size":3046,"noattachment":false,"key":"/opener/-/opener-1.5.1.tgz"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opener_1.5.1_1535426810163_0.09801673221093954"},"_hasShrinkwrap":false,"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":1535426810275,"_cnpm_publish_time":1535426810275,"dist-tags":{"latest":"1.5.2"}}