Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

browser-installer

c9fe0MIT1.4.4

Install web browser across platform

web browser, installer, cross-platform

readme

browser-installer

Install web browser using npm, node or from command line across platforms.

Using node

npm i --save browser-installer
  import {install} from 'browser-installer';

  (async () => {
    await install();
    // web browser will now be installed
  })();

From the CLI

  npm i -g browser-installer
  browser-installer install
  // web browser will now be installed