{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/comments/35501212","id":35501212,"diff_hunk":"@@ -1,13 +1,16 @@\n 'use strict';\n var psList = require('ps-list');\n var fkill = require('fkill');\n-var processName = process.platform === 'darwin' ? 'Chrome Helper' : 'chrome';\n+var processes = {\n+  chrome : process.platform === 'darwin' ? 'Chrome Helper' : 'chrome',\n+  chromium : 'chromium'\n+};\n \n if (process.platform === 'win32') {\n \tpsList = require('./win');\n }\n \n-module.exports = function (cb) {\n+module.exports = function (cli, cb) {","path":"index.js","position":15,"original_position":15,"commit_id":"53767e97415df47b87cbf18d581d6cc419bf19d0","original_commit_id":"53767e97415df47b87cbf18d581d6cc419bf19d0","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"cli => opts\r\n\r\nand should be optional","created_at":"2015-07-27T01:40:15Z","updated_at":"2015-07-27T01:40:15Z","html_url":"https://github.com/sindresorhus/kill-tabs/pull/4#discussion_r35501212","pull_request_url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/comments/35501212"},"html":{"href":"https://github.com/sindresorhus/kill-tabs/pull/4#discussion_r35501212"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4","id":40323715,"html_url":"https://github.com/sindresorhus/kill-tabs/pull/4","diff_url":"https://github.com/sindresorhus/kill-tabs/pull/4.diff","patch_url":"https://github.com/sindresorhus/kill-tabs/pull/4.patch","issue_url":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/4","number":4,"state":"open","locked":false,"title":"Chromium support","user":{"login":"chris-l","id":926693,"avatar_url":"https://avatars.githubusercontent.com/u/926693?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-l","html_url":"https://github.com/chris-l","followers_url":"https://api.github.com/users/chris-l/followers","following_url":"https://api.github.com/users/chris-l/following{/other_user}","gists_url":"https://api.github.com/users/chris-l/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-l/subscriptions","organizations_url":"https://api.github.com/users/chris-l/orgs","repos_url":"https://api.github.com/users/chris-l/repos","events_url":"https://api.github.com/users/chris-l/events{/privacy}","received_events_url":"https://api.github.com/users/chris-l/received_events","type":"User","site_admin":false},"body":"Yes, about #1 issue. Is just a small change, as far as I know, the process is always called that.\r\nI have 2 pcs with linux and chromium and it works ok in both of them.\r\n\r\nIf the pc is executing chrome **and** chromium, it should kill the tabs of *both* browsers.","created_at":"2015-07-20T05:02:58Z","updated_at":"2015-07-27T01:40:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99e3114e30c1ecc5bc226789df1b052884daf5db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/4/comments","statuses_url":"https://api.github.com/repos/sindresorhus/kill-tabs/statuses/53767e97415df47b87cbf18d581d6cc419bf19d0","head":{"label":"chris-l:chromium-support","ref":"chromium-support","sha":"53767e97415df47b87cbf18d581d6cc419bf19d0","user":{"login":"chris-l","id":926693,"avatar_url":"https://avatars.githubusercontent.com/u/926693?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-l","html_url":"https://github.com/chris-l","followers_url":"https://api.github.com/users/chris-l/followers","following_url":"https://api.github.com/users/chris-l/following{/other_user}","gists_url":"https://api.github.com/users/chris-l/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-l/subscriptions","organizations_url":"https://api.github.com/users/chris-l/orgs","repos_url":"https://api.github.com/users/chris-l/repos","events_url":"https://api.github.com/users/chris-l/events{/privacy}","received_events_url":"https://api.github.com/users/chris-l/received_events","type":"User","site_admin":false},"repo":{"id":39363996,"name":"kill-tabs","full_name":"chris-l/kill-tabs","owner":{"login":"chris-l","id":926693,"avatar_url":"https://avatars.githubusercontent.com/u/926693?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-l","html_url":"https://github.com/chris-l","followers_url":"https://api.github.com/users/chris-l/followers","following_url":"https://api.github.com/users/chris-l/following{/other_user}","gists_url":"https://api.github.com/users/chris-l/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-l/subscriptions","organizations_url":"https://api.github.com/users/chris-l/orgs","repos_url":"https://api.github.com/users/chris-l/repos","events_url":"https://api.github.com/users/chris-l/events{/privacy}","received_events_url":"https://api.github.com/users/chris-l/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chris-l/kill-tabs","description":"Kill all Chrome tabs to improve performance, decrease battery usage, and save memory","fork":true,"url":"https://api.github.com/repos/chris-l/kill-tabs","forks_url":"https://api.github.com/repos/chris-l/kill-tabs/forks","keys_url":"https://api.github.com/repos/chris-l/kill-tabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chris-l/kill-tabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chris-l/kill-tabs/teams","hooks_url":"https://api.github.com/repos/chris-l/kill-tabs/hooks","issue_events_url":"https://api.github.com/repos/chris-l/kill-tabs/issues/events{/number}","events_url":"https://api.github.com/repos/chris-l/kill-tabs/events","assignees_url":"https://api.github.com/repos/chris-l/kill-tabs/assignees{/user}","branches_url":"https://api.github.com/repos/chris-l/kill-tabs/branches{/branch}","tags_url":"https://api.github.com/repos/chris-l/kill-tabs/tags","blobs_url":"https://api.github.com/repos/chris-l/kill-tabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chris-l/kill-tabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chris-l/kill-tabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/chris-l/kill-tabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chris-l/kill-tabs/statuses/{sha}","languages_url":"https://api.github.com/repos/chris-l/kill-tabs/languages","stargazers_url":"https://api.github.com/repos/chris-l/kill-tabs/stargazers","contributors_url":"https://api.github.com/repos/chris-l/kill-tabs/contributors","subscribers_url":"https://api.github.com/repos/chris-l/kill-tabs/subscribers","subscription_url":"https://api.github.com/repos/chris-l/kill-tabs/subscription","commits_url":"https://api.github.com/repos/chris-l/kill-tabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/chris-l/kill-tabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/chris-l/kill-tabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/chris-l/kill-tabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/chris-l/kill-tabs/contents/{+path}","compare_url":"https://api.github.com/repos/chris-l/kill-tabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chris-l/kill-tabs/merges","archive_url":"https://api.github.com/repos/chris-l/kill-tabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chris-l/kill-tabs/downloads","issues_url":"https://api.github.com/repos/chris-l/kill-tabs/issues{/number}","pulls_url":"https://api.github.com/repos/chris-l/kill-tabs/pulls{/number}","milestones_url":"https://api.github.com/repos/chris-l/kill-tabs/milestones{/number}","notifications_url":"https://api.github.com/repos/chris-l/kill-tabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chris-l/kill-tabs/labels{/name}","releases_url":"https://api.github.com/repos/chris-l/kill-tabs/releases{/id}","created_at":"2015-07-20T04:57:06Z","updated_at":"2015-07-21T01:16:44Z","pushed_at":"2015-07-25T22:01:31Z","git_url":"git://github.com/chris-l/kill-tabs.git","ssh_url":"git@github.com:chris-l/kill-tabs.git","clone_url":"https://github.com/chris-l/kill-tabs.git","svn_url":"https://github.com/chris-l/kill-tabs","homepage":null,"size":84,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"922cb52b1ddb49ba8acb866b388e576aeb82689f","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":38586005,"name":"kill-tabs","full_name":"sindresorhus/kill-tabs","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/kill-tabs","description":"Kill all Chrome tabs to improve performance, decrease battery usage, and save memory","fork":false,"url":"https://api.github.com/repos/sindresorhus/kill-tabs","forks_url":"https://api.github.com/repos/sindresorhus/kill-tabs/forks","keys_url":"https://api.github.com/repos/sindresorhus/kill-tabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/kill-tabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/kill-tabs/teams","hooks_url":"https://api.github.com/repos/sindresorhus/kill-tabs/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/kill-tabs/events","assignees_url":"https://api.github.com/repos/sindresorhus/kill-tabs/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/kill-tabs/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/kill-tabs/tags","blobs_url":"https://api.github.com/repos/sindresorhus/kill-tabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/kill-tabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/kill-tabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/kill-tabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/kill-tabs/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/kill-tabs/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/kill-tabs/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/kill-tabs/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/kill-tabs/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/kill-tabs/subscription","commits_url":"https://api.github.com/repos/sindresorhus/kill-tabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/kill-tabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/kill-tabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/kill-tabs/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/kill-tabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/kill-tabs/merges","archive_url":"https://api.github.com/repos/sindresorhus/kill-tabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/kill-tabs/downloads","issues_url":"https://api.github.com/repos/sindresorhus/kill-tabs/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/kill-tabs/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/kill-tabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/kill-tabs/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/kill-tabs/releases{/id}","created_at":"2015-07-05T22:11:12Z","updated_at":"2015-07-26T07:07:28Z","pushed_at":"2015-07-25T22:01:32Z","git_url":"git://github.com/sindresorhus/kill-tabs.git","ssh_url":"git@github.com:sindresorhus/kill-tabs.git","clone_url":"https://github.com/sindresorhus/kill-tabs.git","svn_url":"https://github.com/sindresorhus/kill-tabs","homepage":null,"size":243,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4"},"html":{"href":"https://github.com/sindresorhus/kill-tabs/pull/4"},"issue":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/4"},"comments":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/kill-tabs/statuses/53767e97415df47b87cbf18d581d6cc419bf19d0"}}}}