{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.5.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":"lib/opener.js","bin":{"opener":"bin/opener-bin.js"},"scripts":{"lint":"eslint ."},"devDependencies":{"eslint":"^7.7.0"},"gitHead":"24edf48a38d1e23bbc5ffbeb079c206d5565f062","bugs":{"url":"https://github.com/domenic/opener/issues"},"homepage":"https://github.com/domenic/opener#readme","_id":"opener@1.5.2","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==","shasum":"5d37e1f35077b9dcac4301372271afdeb2a13598","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.5.2.tgz","fileCount":5,"unpackedSize":6213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh216aCRA9TVsSAnZWagAAI7YP+wagbQLsJ3d5swJZM4xR\nkDpFLZZkoKl5JwCHMyAee1e/aJdDh6sQ1W1iAn4dWS5WjPHyrj3LcKkaw4K3\nKHzR6hW0lQR057duxX1zAtR/fmGq/XSmXA37nQfDjlZ9kVxCd0Bv789XPyE5\n+KkHpNgW5mRBg7r2wRl+rhSNg9CW3fLNU8rCULulngZK0Ndm9DpYcQgvnzvz\nOgCZEzlxkHwI41qwSeLXviZDBkdwua3bD7CURzaKbTOI1ZMborK2NQ+dLAmO\nYeOMKweHD7ZpsUatgz7puRm8YWFM8/3VCXQ06lfu1FUKcm1mNX/txklt/wVb\nESZGmSMwHaS5d9OiHUg+t7ee+VwKY+e8cZ5mpn1BaBAxdgqBRzEEuSh8YpaW\ns5hG9xyO14BzMSqzguXd2q4vnC2OgeCtskIoSAm8IlU2MWp8UHtSnUFozhUf\n9qjcqt9fqVoJPviMPaCJEYtjSzH926FHngwjmckpjbkwzvHu7wmMRi8Fp6JO\n1t6Hwl3/KTPkBe6hvRMqP1uwfovZq+BbZzSaGcj1DGg4jYg0q1mqCu5VshJX\nrzcYpnF5bpgpD9F8ajqZmHKXT0TLfO6gWVsmr0E67cVeiKYRnM9vHnmHaPoD\nYPDi4y2fjkYNjmwFdcLTctSdPNbCX6gO7+bUGPpyU8hVXpT8IQoywgTKe5eg\ndcyU\r\n=qouJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYz+JZcuJQpHG4v9gryk6Sn8tz6oemQjG+WudbJvNewAiBr3RxS6VLOC9CmaN9LIzb1CxDBlSAGhF5Eem6Ulf9gDw=="}],"size":3071,"noattachment":false,"key":"/opener/-/opener-1.5.2.tgz"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"}],"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opener_1.5.2_1598732713676_0.9320761526342078"},"_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":1598732713795,"_cnpm_publish_time":1598732713795,"dist-tags":{"latest":"1.5.2"}}