npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

reload-tabs

2.0.0

@gillstrom

npmHomeRepoSnykSocket
Downloads:146
$ npm install reload-tabs
DailyWeeklyMonthlyYearly

reload-tabs Build Status

Reload all Chrome tabs

OS X systems only

CLI

$ npm install --global reload-tabs
$ reload-tabs --help

  Usage
    $ reload-tabs

  Options
    --no-chrome    Don't reload tabs in Chrome
    --no-chromium  Don't reload tabs in Chromium

Usage

$ npm install --save reload-tabs
const reloadTabs = require('reload-tabs');

reloadTabs().then(() => {
	console.log('Reloaded tabs');
});

API

reloadTabs([options])

Returns a promise.

options

chrome

Type: boolean
Default: true

Decide whether Chrome tabs should be reloaded.

chromium

Type: boolean
Default: true

Decide whether Chromium tabs should be reloaded.

Tip

Perfect match with kill-tabs module.

License

MIT © Andreas Gillström