Launch a Chrome Browser as a nanoprocess that leverages chrome-launcher.
$ npm install nanochrome
Stable
const nanochrome = require('nanochrome')
const chrome = nanochrome('https://example.com')
chrome.open((err) => {
// chrome browser window opened
})
Creates a new Chrome
(nanoprocess) instance from uri
with optional options
that are passed directly to
chrome.launch()
. options
can also be:
{
app: false, // set to `true` to launch URI in application mode (--app=)
headless: false, // set `true` to run headless (--headless)
}
See Chrome Flags for
Tools for a complete list of useful flags that can be passed in the opts.chromeFlags
array.
Opens the Google Chrome browser calling callback(err)
upon success or
error.
Closes the Google Chrome browser calling callback(err)
upon success or
error.
MIT