Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caspervonb/webbrowser
Detect and launch browsers
https://github.com/caspervonb/webbrowser
Last synced: about 1 month ago
JSON representation
Detect and launch browsers
- Host: GitHub
- URL: https://github.com/caspervonb/webbrowser
- Owner: caspervonb
- Created: 2016-01-13T13:06:07.000Z (almost 9 years ago)
- Default Branch: draft
- Last Pushed: 2016-01-16T21:29:55.000Z (almost 9 years ago)
- Last Synced: 2024-05-01T13:00:24.418Z (8 months ago)
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
node-web_browser - detect and launch browsers
=============================================The `web_browser` module provides functions for opening web content in the
user's preferred browser, detect browsers available on the user's machine and
obtaining detailed information about those browsers.INSTALL
-------The `web_browser` module is available via [npm](http://npmjs.com), the
following command will install the latest stable version of the module in your
project directory:```sh
npm install web_browser
```EXAMPLE
-------The following example program will the url open a new window pointing to
http://github.com in the user’s preferred browser which is inferred from the
`BROWSER` environment variable:```js
const web = require('web_browser');web.open('http://github.com', { tab: false }, (error, ps) => {
if (error) {
return console.error(`${process.name}: ${error.message}`);
}console.log(`http://github.com was opened with ${ps.spawnfile}`);
});
```[View more examples](example/)
DOCUMENTATION
-------------[View the documentation](doc/)
LICENSE
-------The project is licensed under MIT.
[View the license](license.md)