{"name":"opener","description":"Opens stuff, like webpages and files and executables, cross-platform","version":"1.5.0","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":"b9ac3d0d0c6f066e9429889cd54106b8f50785da","bugs":{"url":"https://github.com/domenic/opener/issues"},"homepage":"https://github.com/domenic/opener#readme","_id":"opener@1.5.0","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-MD4s/o61y2slS27zm2s4229V2gAUHX0/e3/XOmY/jsXwhysjjCIHN8lx7gqZCrZk19ym+HjCUWHeMKD7YJtKCQ==","shasum":"24222fb4ad423ba21f5bf38855cebe44220f6531","tarball":"http://registry-npm.ywwl.com/opener/download/opener-1.5.0.tgz","fileCount":5,"unpackedSize":6194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcMnHCRA9TVsSAnZWagAAOMcP+QFqN/hIp1/J9K/oIDzv\n2eVmWCX6xGKuMjbZbK6Ca06hPXX2c254erhgeJdPRC55UqnT75w+9IONOn9q\nY/sUDrT2/8eoL/Q2G3CTQNfQE0p1eq2e4x6k8QpA4txjqKGXsGBTjesuQ0Bd\nRpZAIRtOigh5twGXFmCF2iYLOQ2x3Uh7jpVQPqmbspLJIbGfpGmuTbvjOXlV\naPIarlvrgydXJBZgO3aL/8WTT+9nUhysIca6c8rhhLuRLfOXx/wfDnlHWjIq\nbGv9nMx9mtqIgH5JNYo+QDI3x8bL8/7HP3rkoNzGfnvEYTkca10C3NJx7QU/\nR5uatdQPzLkBVpoBQ9HrRTJoTFQuyUij7ruD2vrIQaRQbdbD0sNL2iiJ71yb\nNVaNEKEd5boWmQ8dlxOCKHFYwtp5IQ9nYmWg4UsiV5CJR4fVDbU+z/AHJPWn\nny0sZ1Wwz/j+uXZ3epr+UcEbRrkhJYQk27FQncLInbOSDqBmo+BwisI895+J\npWHKhmSzXUhHyaBEq46P2uVO9Tjodh232rbc81tsHfVYvk0ScC4/J2l3A7hM\n+sYHLcnzhFIT5aaynWAZnYwCW2NjI9xsaOpxqu6COaCYz48aiMORfDHotM1f\nwDcll+MdIBQBGnD61p/F5DUWg14JNpc0+Pt/wibukOdX2M4vamxLTRFzX4E9\nMMEU\r\n=ne1o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkuv3lwHjVZr0REiYs+tAIqSPaKAM1kbC+E4hIJWrEYwIhAP8iIkUUzzN7Ol/gPZwkYPMYKerjk2jGXl71f1S/lBIU"}],"size":3070,"noattachment":false,"key":"/opener/-/opener-1.5.0.tgz"},"maintainers":[{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opener_1.5.0_1534118343196_0.47769097545898975"},"_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":1534118343305,"_cnpm_publish_time":1534118343305,"dist-tags":{"latest":"1.5.2"}}