{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/is-online/pulls/comments/80889333","pull_request_review_id":1909744,"id":80889333,"diff_hunk":"@@ -4,11 +4,22 @@ var onetime = require('onetime');\n var roots = require('root-hints')('A');\n var isReachable = require('is-reachable');\n var randomItem = require('random-item');\n+var objectAssign = require('object-assign');\n var hostnames = require('./hostnames');\n \n var timeout = 2000;","path":"index.js","position":7,"original_position":7,"commit_id":"8512826793695e177ab7590f7104837a0c5e0fd2","original_commit_id":"8512826793695e177ab7590f7104837a0c5e0fd2","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":"Just put it inline","created_at":"2016-09-28T10:49:55Z","updated_at":"2016-09-28T10:50:04Z","html_url":"https://github.com/sindresorhus/is-online/pull/28#discussion_r80889333","pull_request_url":"https://api.github.com/repos/sindresorhus/is-online/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/comments/80889333"},"html":{"href":"https://github.com/sindresorhus/is-online/pull/28#discussion_r80889333"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/is-online/pulls/28","id":84097549,"html_url":"https://github.com/sindresorhus/is-online/pull/28","diff_url":"https://github.com/sindresorhus/is-online/pull/28.diff","patch_url":"https://github.com/sindresorhus/is-online/pull/28.patch","issue_url":"https://api.github.com/repos/sindresorhus/is-online/issues/28","number":28,"state":"open","locked":false,"title":"Add options support","user":{"login":"zce","id":6166576,"avatar_url":"https://avatars.githubusercontent.com/u/6166576?v=3","gravatar_id":"","url":"https://api.github.com/users/zce","html_url":"https://github.com/zce","followers_url":"https://api.github.com/users/zce/followers","following_url":"https://api.github.com/users/zce/following{/other_user}","gists_url":"https://api.github.com/users/zce/gists{/gist_id}","starred_url":"https://api.github.com/users/zce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zce/subscriptions","organizations_url":"https://api.github.com/users/zce/orgs","repos_url":"https://api.github.com/users/zce/repos","events_url":"https://api.github.com/users/zce/events{/privacy}","received_events_url":"https://api.github.com/users/zce/received_events","type":"User","site_admin":false},"body":"Some time we need custom timeout and hosts, so...\r\n\r\nexample: \r\n\r\n```js\r\nvar isOnline = require('is-online');\r\nisOnline({ timeout: 1000, hostnames: ['youtu.be'] }, function(err, online) {\r\n\tconsole.log(online);\r\n\t// => true\r\n});\r\n```","created_at":"2016-09-06T10:29:57Z","updated_at":"2016-09-28T10:50:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0120fc51be339485265c3bdd1471ed52e102e712","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/is-online/pulls/28/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/is-online/pulls/28/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/is-online/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/is-online/issues/28/comments","statuses_url":"https://api.github.com/repos/sindresorhus/is-online/statuses/8512826793695e177ab7590f7104837a0c5e0fd2","head":{"label":"zce:master","ref":"master","sha":"8512826793695e177ab7590f7104837a0c5e0fd2","user":{"login":"zce","id":6166576,"avatar_url":"https://avatars.githubusercontent.com/u/6166576?v=3","gravatar_id":"","url":"https://api.github.com/users/zce","html_url":"https://github.com/zce","followers_url":"https://api.github.com/users/zce/followers","following_url":"https://api.github.com/users/zce/following{/other_user}","gists_url":"https://api.github.com/users/zce/gists{/gist_id}","starred_url":"https://api.github.com/users/zce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zce/subscriptions","organizations_url":"https://api.github.com/users/zce/orgs","repos_url":"https://api.github.com/users/zce/repos","events_url":"https://api.github.com/users/zce/events{/privacy}","received_events_url":"https://api.github.com/users/zce/received_events","type":"User","site_admin":false},"repo":{"id":67493301,"name":"is-online","full_name":"zce/is-online","owner":{"login":"zce","id":6166576,"avatar_url":"https://avatars.githubusercontent.com/u/6166576?v=3","gravatar_id":"","url":"https://api.github.com/users/zce","html_url":"https://github.com/zce","followers_url":"https://api.github.com/users/zce/followers","following_url":"https://api.github.com/users/zce/following{/other_user}","gists_url":"https://api.github.com/users/zce/gists{/gist_id}","starred_url":"https://api.github.com/users/zce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zce/subscriptions","organizations_url":"https://api.github.com/users/zce/orgs","repos_url":"https://api.github.com/users/zce/repos","events_url":"https://api.github.com/users/zce/events{/privacy}","received_events_url":"https://api.github.com/users/zce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zce/is-online","description":"Check if the internet connection is up","fork":true,"url":"https://api.github.com/repos/zce/is-online","forks_url":"https://api.github.com/repos/zce/is-online/forks","keys_url":"https://api.github.com/repos/zce/is-online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zce/is-online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zce/is-online/teams","hooks_url":"https://api.github.com/repos/zce/is-online/hooks","issue_events_url":"https://api.github.com/repos/zce/is-online/issues/events{/number}","events_url":"https://api.github.com/repos/zce/is-online/events","assignees_url":"https://api.github.com/repos/zce/is-online/assignees{/user}","branches_url":"https://api.github.com/repos/zce/is-online/branches{/branch}","tags_url":"https://api.github.com/repos/zce/is-online/tags","blobs_url":"https://api.github.com/repos/zce/is-online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zce/is-online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zce/is-online/git/refs{/sha}","trees_url":"https://api.github.com/repos/zce/is-online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zce/is-online/statuses/{sha}","languages_url":"https://api.github.com/repos/zce/is-online/languages","stargazers_url":"https://api.github.com/repos/zce/is-online/stargazers","contributors_url":"https://api.github.com/repos/zce/is-online/contributors","subscribers_url":"https://api.github.com/repos/zce/is-online/subscribers","subscription_url":"https://api.github.com/repos/zce/is-online/subscription","commits_url":"https://api.github.com/repos/zce/is-online/commits{/sha}","git_commits_url":"https://api.github.com/repos/zce/is-online/git/commits{/sha}","comments_url":"https://api.github.com/repos/zce/is-online/comments{/number}","issue_comment_url":"https://api.github.com/repos/zce/is-online/issues/comments{/number}","contents_url":"https://api.github.com/repos/zce/is-online/contents/{+path}","compare_url":"https://api.github.com/repos/zce/is-online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zce/is-online/merges","archive_url":"https://api.github.com/repos/zce/is-online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zce/is-online/downloads","issues_url":"https://api.github.com/repos/zce/is-online/issues{/number}","pulls_url":"https://api.github.com/repos/zce/is-online/pulls{/number}","milestones_url":"https://api.github.com/repos/zce/is-online/milestones{/number}","notifications_url":"https://api.github.com/repos/zce/is-online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zce/is-online/labels{/name}","releases_url":"https://api.github.com/repos/zce/is-online/releases{/id}","deployments_url":"https://api.github.com/repos/zce/is-online/deployments","created_at":"2016-09-06T09:22:20Z","updated_at":"2016-09-06T09:22:21Z","pushed_at":"2016-09-28T10:32:38Z","git_url":"git://github.com/zce/is-online.git","ssh_url":"git@github.com:zce/is-online.git","clone_url":"https://github.com/zce/is-online.git","svn_url":"https://github.com/zce/is-online","homepage":"","size":44,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"66781bd94a037e315da055a320c19cae3c88f19a","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":24239833,"name":"is-online","full_name":"sindresorhus/is-online","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/is-online","description":"Check if the internet connection is up","fork":false,"url":"https://api.github.com/repos/sindresorhus/is-online","forks_url":"https://api.github.com/repos/sindresorhus/is-online/forks","keys_url":"https://api.github.com/repos/sindresorhus/is-online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/is-online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/is-online/teams","hooks_url":"https://api.github.com/repos/sindresorhus/is-online/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/is-online/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/is-online/events","assignees_url":"https://api.github.com/repos/sindresorhus/is-online/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/is-online/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/is-online/tags","blobs_url":"https://api.github.com/repos/sindresorhus/is-online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/is-online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/is-online/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/is-online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/is-online/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/is-online/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/is-online/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/is-online/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/is-online/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/is-online/subscription","commits_url":"https://api.github.com/repos/sindresorhus/is-online/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/is-online/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/is-online/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/is-online/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/is-online/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/is-online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/is-online/merges","archive_url":"https://api.github.com/repos/sindresorhus/is-online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/is-online/downloads","issues_url":"https://api.github.com/repos/sindresorhus/is-online/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/is-online/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/is-online/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/is-online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/is-online/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/is-online/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/is-online/deployments","created_at":"2014-09-19T17:58:49Z","updated_at":"2016-09-17T17:07:32Z","pushed_at":"2016-09-28T10:32:39Z","git_url":"git://github.com/sindresorhus/is-online.git","ssh_url":"git@github.com:sindresorhus/is-online.git","clone_url":"https://github.com/sindresorhus/is-online.git","svn_url":"https://github.com/sindresorhus/is-online","homepage":"","size":47,"stargazers_count":202,"watchers_count":202,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":8,"forks":22,"open_issues":8,"watchers":202,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/28"},"html":{"href":"https://github.com/sindresorhus/is-online/pull/28"},"issue":{"href":"https://api.github.com/repos/sindresorhus/is-online/issues/28"},"comments":{"href":"https://api.github.com/repos/sindresorhus/is-online/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/is-online/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/is-online/statuses/8512826793695e177ab7590f7104837a0c5e0fd2"}}}}
{"actor":{"display_login":"sindresorhus"}}