webkit-opener
WEBKIT-OPENER IS DEPRECATED
WEBKIT OPENER IS DEPRECATED AND WON'T BE MAINTAINED, PLEASE USE BIASED-OPENER INSTEAD
This module tries to open the provided URL in some webkit-based browser available on the machine. It prefers the default browser of the user (as long as it's webkit), otherwise, it tries Chrome, Opera, Chromium in that order.
If no webkit browsers found, it doesn't launch anything, just calls the callback with an error.
Tested on Windows 7 64-bit, Windows XP 32-bit, Ubuntu 14.04 64-bit (en-US locale).
It requires nodejs and npm. If you don't have node, grab it at nodejs.org. Node installer bundles npm (node package manager)
Rationale
Certain applications require certain webkit-only features (for instance, Node Inspector). For that apps, it makes sense to only open a URL in a webkit browser, otherwise tell the user about the error instead of opening the URL in unsupported browser.
Usage as a nodejs module
$ npm install webkit-opener
var webkitOpener = ; var url = "http://example.org";var verbose = true; ;
Usage from command line
$ npm install -g webkit-opener$ webkit-opener --verbose http://example.org
Linux support
This module was only tested on Ubuntu. Compatibility reports and fixes for other distros are more than welcome! Use GitHub issues or email: (jakub.g.opensource) (gmail)
License
MIT © Jakub Gieryluk
Related projects
- browser-launcher2 (cross-platform)
-
[opener](https://github.com/domenic/opener) (cross-platform)