Skip to content

totorojs/browsers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browsers

A simple browser driver.


0. Features

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

Supported browsers

Both on mac and windows.

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

  • Chrome
  • Safari
  • Firefox
  • IE

1. Installation

Install From npm

npm install browsers -g

Install From Github

to get the latest function

git clone [email protected]:totorojs/browsers.git
cd browsers
npm install -g

2. Quick Start

Detect all available browsers and visit totorojs.org.

$ browsers --capture=totorojs.org

Specifiy chrome and firefox to visit totorojs.org.

$ browsers --capture=totorojs.org --browsers=chrome,firefox

3. Cli Options

-c, --capture

Specify URL to visit.

-b, --browsers

Specify browsers to open.

Default: all available browsers on OS.

-d, --debug

Show debug log.

-v, --version

Output version number.

-h, --help

Output usage information.

About

A simple and stable browser driver.

Resources

Stars

Watchers

Forks

Packages

No packages published