{"_id":"biased-opener","_rev":"437446","name":"biased-opener","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","dist-tags":{"latest":"0.2.8"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"time":{"modified":"2021-08-05T06:21:08.000Z","created":"2015-01-16T17:07:53.696Z","0.2.8":"2016-03-15T18:44:24.097Z","0.2.7":"2015-11-20T09:11:44.814Z","0.2.6":"2015-06-09T11:43:22.010Z","0.2.5":"2015-04-17T08:31:16.197Z","0.2.4":"2015-03-24T12:37:32.212Z","0.2.3":"2015-02-25T13:31:25.907Z","0.2.2":"2015-01-16T17:59:39.420Z","0.2.1":"2015-01-16T17:32:23.324Z","0.2.0":"2015-01-16T17:07:53.696Z"},"users":{},"author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/jakub-g/biased-opener.git"},"versions":{"0.2.8":{"name":"biased-opener","version":"0.2.8","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"git+https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"~0.4.6","minimist":"^1.2.0","x-default-browser":"~0.3.0"},"gitHead":"09e1e92f0f47551a228e6fbeddbd6a9c9ce77b1d","_id":"biased-opener@0.2.8","_shasum":"159a49b9a9714c1fb102f2e0ed1906fab6a450f4","_from":".","_npmVersion":"2.14.14","_nodeVersion":"0.12.9","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"dist":{"shasum":"159a49b9a9714c1fb102f2e0ed1906fab6a450f4","size":4793,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.8.tgz"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/biased-opener-0.2.8.tgz_1458067461735_0.42589062452316284"},"directories":{},"publish_time":1458067464097,"_cnpm_publish_time":1458067464097,"_hasShrinkwrap":false},"0.2.7":{"name":"biased-opener","version":"0.2.7","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"git+https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"~0.4.6","minimist":"^1.2.0","x-default-browser":"~0.3.0"},"gitHead":"4483b9ca9257b529b0439d7b7ee2d1abe9a0dbae","_id":"biased-opener@0.2.7","_shasum":"76695cc0637d39d0211df2b024ca4f493e367c27","_from":".","_npmVersion":"2.14.8","_nodeVersion":"0.12.7","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"dist":{"shasum":"76695cc0637d39d0211df2b024ca4f493e367c27","size":4775,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.7.tgz"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"directories":{},"publish_time":1448010704814,"_cnpm_publish_time":1448010704814,"_hasShrinkwrap":false},"0.2.6":{"name":"biased-opener","version":"0.2.6","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.5","minimist":"1.1.0","x-default-browser":"0.3.0"},"gitHead":"cde2f6d42085cb16b077744e42a3638bcf0fc770","_id":"biased-opener@0.2.6","_shasum":"e99e3430b3bb0f453b6e0c525a1bac889edcffd5","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.3","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"dist":{"shasum":"e99e3430b3bb0f453b6e0c525a1bac889edcffd5","size":4785,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.6.tgz"},"directories":{},"publish_time":1433850202010,"_cnpm_publish_time":1433850202010,"_hasShrinkwrap":false},"0.2.5":{"name":"biased-opener","version":"0.2.5","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.5","minimist":"1.1.0","opener":"1.4.1","x-default-browser":"0.3.0"},"gitHead":"ae52a40baa23631d126b681c67eb00bffb6ec630","_id":"biased-opener@0.2.5","_shasum":"2a57fe55c6209ea5e178e13ba64bddac72c8f7c0","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.10.38","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"dist":{"shasum":"2a57fe55c6209ea5e178e13ba64bddac72c8f7c0","size":4767,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.5.tgz"},"directories":{},"publish_time":1429259476197,"_cnpm_publish_time":1429259476197,"_hasShrinkwrap":false},"0.2.4":{"name":"biased-opener","version":"0.2.4","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.4","minimist":"1.1.0","opener":"1.4.1","x-default-browser":"0.3.0"},"gitHead":"777d032ef2e964454a0e0d015d7cdd67c3d70767","_id":"biased-opener@0.2.4","_shasum":"460a23360d368af101f8721d4323acec0c170c4e","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.10.37","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"dist":{"shasum":"460a23360d368af101f8721d4323acec0c170c4e","size":4676,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.4.tgz"},"directories":{},"publish_time":1427200652212,"_cnpm_publish_time":1427200652212,"_hasShrinkwrap":false},"0.2.3":{"name":"biased-opener","version":"0.2.3","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.4","minimist":"1.1.0","opener":"1.4.0","x-default-browser":"0.3.0"},"_id":"biased-opener@0.2.3","dist":{"shasum":"31790a6cd40976d93e19c8d1a7e966e9f4c8577e","size":4637,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.3.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"directories":{},"publish_time":1424871085907,"_cnpm_publish_time":1424871085907,"_hasShrinkwrap":false},"0.2.2":{"name":"biased-opener","version":"0.2.2","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.4","minimist":"1.1.0","opener":"1.4.0","x-default-browser":"0.3.0"},"_id":"biased-opener@0.2.2","dist":{"shasum":"e02a8eb20a07b1e1b555a3bf1e56f51b43465d98","size":4466,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"directories":{},"publish_time":1421431179420,"_cnpm_publish_time":1421431179420,"_hasShrinkwrap":false},"0.2.1":{"name":"biased-opener","version":"0.2.1","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.4","minimist":"1.1.0","opener":"1.4.0","x-default-browser":"0.3.0"},"_id":"biased-opener@0.2.1","dist":{"shasum":"11c58d575776a83a263cd1404383dc717d421a5c","size":4305,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"directories":{},"publish_time":1421429543324,"_cnpm_publish_time":1421429543324,"_hasShrinkwrap":false},"0.2.0":{"name":"biased-opener","version":"0.2.0","description":"Cross-platform, opens a URL with one of the browsers passed as parameter (if available in the system), preferably default browser of the user","author":{"name":"Jakub Gieryluk","email":"jakub.g.opensource@gmail.com"},"license":"MIT","homepage":"https://github.com/jakub-g/biased-opener","repository":{"type":"git","url":"https://github.com/jakub-g/biased-opener.git"},"bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"bin":{"biased-opener":"bin/biased-opener.js"},"main":"index.js","scripts":{"lint":"jshint index.js","test":"npm run lint"},"keywords":["browser","opener","launcher","windows","ubuntu","linux","macos","macosx","biased","webkit"],"devDependencies":{"jshint":"2.5.10"},"dependencies":{"browser-launcher2":"0.4.4","minimist":"1.1.0","opener":"1.4.0","x-default-browser":"0.3.0"},"_id":"biased-opener@0.2.0","dist":{"shasum":"d2c912c491042b84bcdf5256de8e4f2ca69f4630","size":4220,"noattachment":false,"key":"/biased-opener/-/biased-opener-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/biased-opener/download/biased-opener-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"},"maintainers":[{"name":"jakub-g","email":"jakub.g.opensource@gmail.com"}],"directories":{},"publish_time":1421428073696,"_cnpm_publish_time":1421428073696,"_hasShrinkwrap":false}},"readme":"# biased-opener\r\n [![Build Status](https://secure.travis-ci.org/jakub-g/biased-opener.png?branch=master)](http://travis-ci.org/jakub-g/biased-opener)\r\n\r\n [![Get it on npm](https://nodei.co/npm/biased-opener.png?compact=true)](https://www.npmjs.org/package/biased-opener)\r\n\r\n\r\nThis module tries to open the provided URL in some of the user-supplied browsers available on the machine.\r\nIt prefers the default browser of the user, otherwise it tries all other browsers in the order in which they were passed.\r\n\r\nIf no conforming browsers found, it doesn't launch anything, just calls the callback with an error.\r\n\r\nTested on Windows 7 64-bit, Windows XP 32-bit, Ubuntu 14.04 64-bit, Mac OS X 10.10 (en-US locale).\r\n\r\nIt requires nodejs and npm. If you don't have node, grab it at [nodejs.org](https://nodejs.org).\r\nNode installer bundles npm (node package manager)\r\n\r\n## Rationale\r\n\r\nCertain applications require certain webkit-only features (for instance, Node Inspector).\r\nFor that apps, it makes sense to only open a URL in a webkit browser, otherwise tell the user\r\nabout the error instead of opening the URL in unsupported browser.\r\n\r\n\r\n## Usage as a nodejs module\r\n\r\n```sh\r\n$ npm install biased-opener\r\n```\r\n\r\n```js\r\nvar biasedOpener = require('biased-opener');\r\n\r\nvar url = \"http://example.org\";\r\nvar cfg = {\r\n  verbose: true,\r\n  preferredBrowsers: ['chrome', 'opera'] // comma-delimited string \"chrome, opera\" is also accepted\r\n};\r\n// if `cfg` is not passed, it defaults to `{ verbose: false, preferredBrowsers: ['chrome'] }`\r\n\r\nbiasedOpener(url, cfg, function(err, okMsg, instance) {\r\n    if (err) {\r\n        // didn't find any matching browser, or there was some failure while launching it\r\n    }\r\n    if (instance) {\r\n        // control the instance if you need it\r\n        // see https://github.com/benderjs/browser-launcher2#instance\r\n    }\r\n});\r\n```\r\n\r\n\r\n## Usage from command line\r\n\r\n```sh\r\n$ npm install -g biased-opener\r\n$ biased-opener -h                             # to see all the options\r\n$ biased-opener --verbose --browsers 'chrome, opera' 'http://example.org'\r\n```\r\n\r\nIf `--browsers` is not passed, it defaults to `chrome`.\r\n\r\n## Recognized browsers\r\n\r\n- `chrome`\r\n- `chromium`\r\n- `opera`\r\n- `firefox`\r\n- `safari`\r\n- `ie`\r\n\r\n\r\n## Linux support\r\n\r\nThis module was only tested on Ubuntu. Compatibility reports and fixes for other distros are more than welcome!\r\nUse GitHub issues or email: (jakub.g.opensource) (gmail)\r\n\r\n\r\n## License\r\n\r\nMIT © [Jakub Gieryluk](http://jakub-g.github.io)\r\n\r\n\r\n## Related projects\r\n\r\n*   [browser-launcher2](https://github.com/benderjs/browser-launcher2) (cross-platform)\r\n*              [opener](https://github.com/domenic/opener) (cross-platform)\r\n","_attachments":{},"homepage":"https://github.com/jakub-g/biased-opener","bugs":{"url":"https://github.com/jakub-g/biased-opener/issues"},"license":"MIT"}