kill-tabs 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -10,6 +10,7 @@ const cli = meow(`
10
10
  --no-chromium Don't kill tabs in Chromium
11
11
  --no-chrome Don't kill tabs in Chrome
12
12
  --no-brave Don't kill tabs in Brave
13
+ --no-edge Don't kill tabs in Edge
13
14
  `, {
14
15
  importMeta: import.meta,
15
16
  flags: {
@@ -25,6 +26,10 @@ const cli = meow(`
25
26
  type: 'boolean',
26
27
  default: true,
27
28
  },
29
+ edge: {
30
+ type: 'boolean',
31
+ default: true,
32
+ },
28
33
  },
29
34
  });
30
35
 
package/index.js CHANGED
@@ -11,6 +11,7 @@ export default async function killTabs(options = {}) {
11
11
  chrome: process.platform === 'darwin' ? 'Chrome Helper' : 'chrome',
12
12
  chromium: process.platform === 'darwin' ? 'Chromium Helper' : 'chromium',
13
13
  brave: process.platform === 'darwin' ? 'Brave Browser Helper' : 'brave',
14
+ edge: process.platform === 'darwin' ? 'Microsoft Edge Helper' : 'edge',
14
15
  };
15
16
 
16
17
  if (options.chromium === false) {
@@ -25,6 +26,10 @@ export default async function killTabs(options = {}) {
25
26
  delete processes.brave;
26
27
  }
27
28
 
29
+ if (options.edge === false) {
30
+ delete processes.edge;
31
+ }
32
+
28
33
  const pids = list
29
34
  .filter(process_ =>
30
35
  Object.keys(processes).some(name => process_.cmd.includes(processes[name]))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kill-tabs",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "Kill all Chrome tabs to improve performance, decrease battery usage, and save memory",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/kill-tabs",
@@ -29,6 +29,7 @@
29
29
  "cli",
30
30
  "chrome",
31
31
  "brave",
32
+ "edge",
32
33
  "browser",
33
34
  "tabs",
34
35
  "kill",
package/readme.md CHANGED
@@ -26,6 +26,7 @@ $ kill-tabs --help
26
26
  --no-chromium Don't kill tabs in Chromium
27
27
  --no-chrome Don't kill tabs in Chrome
28
28
  --no-brave Don't kill tabs in Brave
29
+ --no-edge Don't kill tabs in Edge
29
30
  ```
30
31
 
31
32
  ## API