A simple browser driver.


A simple browser driver.

  • Detect available browsers.
  • Open specified browsers to visit specified URL.
  • Close specified browsers.

Both on mac and windows.

Be mind that all browsers must be installed in default path.

  • Chrome
  • Safari
  • Firefox
  • IE
npm install browsers -g

to get the latest function

git clone
cd browsers
npm install -g

Detect all available browsers and visit

$ browsers

Specifiy chrome and firefox to visit

$ browsers --browsers=chrome,firefox

Specify URL to visit.

Specify browsers to open.

Default: all available browsers on OS.

Show debug log.

Output version number.

Output usage information.