JSPM

@nhatnguyenqn/stop-tabs

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 5
    • Score
      100M100P100Q57875F
    • License MIT

    Kill all tabs to improve performance, decrease battery usage, and save memory

    Package Exports

    • @nhatnguyenqn/stop-tabs

    Readme

    stop-tabs (Chromium, Chrome, Microsoft Edge, Brave)

    ** This repository forked from https://github.com/sindresorhus/kill-tabs ** (Recommend: Please use origin source to custom according to your thoughts)

    Kill all Chromium tabs to improve performance, decrease battery usage, and save memory

    Works on macOS, Linux, Windows.

    I'm a tab-abuser and I use this once in a while to prevent Chrome from taking up all system resources.

    When you run stop-tabs the Chrome tab processes are killed, which means they will no longer take up system resources, but they will still be in your Chrome window, just as crashed. When you want one back you just reload the tab.

    CLI

    npm install --global @nhatnguyenqn/stop-tabs
    $ stop-tabs --help
    
      Usage
        $ stop-tabs
    
      Options
        --no-chromium  Don't kill tabs in Chromium
        --no-chrome    Don't kill tabs in Chrome
        --no-brave     Don't kill tabs in Brave

    API

    npm install stop-tabs
    import killTabs from 'stop-tabs';
    
    await killTabs();
    console.log('Killed tabs');

    Tip

    You can use the Reload All Tabs Chrome extension to easily reload all the tabs.