{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/comments/38959775","id":38959775,"diff_hunk":"@@ -34,13 +34,18 @@ unicorns\n \n Get `stdin` as a string.\n \n-Returns a promise.\n+Returns a promise that is resolved when the 'end' event fires on the `stdin` stream, indicating that there is no more data to be read. \n+\n+In a TTY context, a promise that resolves to empty string is returned. ","path":"readme.md","position":7,"original_position":7,"commit_id":"aa61dbb4a8351c7c42697fef9a37235412c4830a","original_commit_id":"aa61dbb4a8351c7c42697fef9a37235412c4830a","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":"Yeah, sorry.","created_at":"2015-09-08T18:10:17Z","updated_at":"2015-09-08T18:10:17Z","html_url":"https://github.com/sindresorhus/get-stdin/pull/8#discussion_r38959775","pull_request_url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/comments/38959775"},"html":{"href":"https://github.com/sindresorhus/get-stdin/pull/8#discussion_r38959775"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8","id":44458941,"html_url":"https://github.com/sindresorhus/get-stdin/pull/8","diff_url":"https://github.com/sindresorhus/get-stdin/pull/8.diff","patch_url":"https://github.com/sindresorhus/get-stdin/pull/8.patch","issue_url":"https://api.github.com/repos/sindresorhus/get-stdin/issues/8","number":8,"state":"open","locked":false,"title":"Clarify details of now `stdin` is implemented","user":{"login":"markstos","id":25829,"avatar_url":"https://avatars.githubusercontent.com/u/25829?v=3","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"body":"It wasn't clear from the docs how a flowing stream would be converted to a static stream. \r\n\r\nThese updated docs clarify that the *entire* stream is captured by waiting for the `end` event. It also notes that methods function differently in TTY context.","created_at":"2015-09-08T17:19:17Z","updated_at":"2015-09-08T18:10:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c64a2b706af770d832647620f3caff97f47d0ee4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/get-stdin/issues/8/comments","statuses_url":"https://api.github.com/repos/sindresorhus/get-stdin/statuses/aa61dbb4a8351c7c42697fef9a37235412c4830a","head":{"label":"markstos:patch-1","ref":"patch-1","sha":"aa61dbb4a8351c7c42697fef9a37235412c4830a","user":{"login":"markstos","id":25829,"avatar_url":"https://avatars.githubusercontent.com/u/25829?v=3","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"repo":{"id":42127165,"name":"get-stdin","full_name":"markstos/get-stdin","owner":{"login":"markstos","id":25829,"avatar_url":"https://avatars.githubusercontent.com/u/25829?v=3","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markstos/get-stdin","description":"Get stdin as a string or buffer","fork":true,"url":"https://api.github.com/repos/markstos/get-stdin","forks_url":"https://api.github.com/repos/markstos/get-stdin/forks","keys_url":"https://api.github.com/repos/markstos/get-stdin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markstos/get-stdin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markstos/get-stdin/teams","hooks_url":"https://api.github.com/repos/markstos/get-stdin/hooks","issue_events_url":"https://api.github.com/repos/markstos/get-stdin/issues/events{/number}","events_url":"https://api.github.com/repos/markstos/get-stdin/events","assignees_url":"https://api.github.com/repos/markstos/get-stdin/assignees{/user}","branches_url":"https://api.github.com/repos/markstos/get-stdin/branches{/branch}","tags_url":"https://api.github.com/repos/markstos/get-stdin/tags","blobs_url":"https://api.github.com/repos/markstos/get-stdin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markstos/get-stdin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markstos/get-stdin/git/refs{/sha}","trees_url":"https://api.github.com/repos/markstos/get-stdin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markstos/get-stdin/statuses/{sha}","languages_url":"https://api.github.com/repos/markstos/get-stdin/languages","stargazers_url":"https://api.github.com/repos/markstos/get-stdin/stargazers","contributors_url":"https://api.github.com/repos/markstos/get-stdin/contributors","subscribers_url":"https://api.github.com/repos/markstos/get-stdin/subscribers","subscription_url":"https://api.github.com/repos/markstos/get-stdin/subscription","commits_url":"https://api.github.com/repos/markstos/get-stdin/commits{/sha}","git_commits_url":"https://api.github.com/repos/markstos/get-stdin/git/commits{/sha}","comments_url":"https://api.github.com/repos/markstos/get-stdin/comments{/number}","issue_comment_url":"https://api.github.com/repos/markstos/get-stdin/issues/comments{/number}","contents_url":"https://api.github.com/repos/markstos/get-stdin/contents/{+path}","compare_url":"https://api.github.com/repos/markstos/get-stdin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markstos/get-stdin/merges","archive_url":"https://api.github.com/repos/markstos/get-stdin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markstos/get-stdin/downloads","issues_url":"https://api.github.com/repos/markstos/get-stdin/issues{/number}","pulls_url":"https://api.github.com/repos/markstos/get-stdin/pulls{/number}","milestones_url":"https://api.github.com/repos/markstos/get-stdin/milestones{/number}","notifications_url":"https://api.github.com/repos/markstos/get-stdin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markstos/get-stdin/labels{/name}","releases_url":"https://api.github.com/repos/markstos/get-stdin/releases{/id}","created_at":"2015-09-08T17:13:23Z","updated_at":"2015-09-08T17:13:23Z","pushed_at":"2015-09-08T17:19:10Z","git_url":"git://github.com/markstos/get-stdin.git","ssh_url":"git@github.com:markstos/get-stdin.git","clone_url":"https://github.com/markstos/get-stdin.git","svn_url":"https://github.com/markstos/get-stdin","homepage":"","size":276,"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":"7c2839422cf94ef75eb82a039fd9e68ee2da4cbf","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":16812547,"name":"get-stdin","full_name":"sindresorhus/get-stdin","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/get-stdin","description":"Get stdin as a string or buffer","fork":false,"url":"https://api.github.com/repos/sindresorhus/get-stdin","forks_url":"https://api.github.com/repos/sindresorhus/get-stdin/forks","keys_url":"https://api.github.com/repos/sindresorhus/get-stdin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/get-stdin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/get-stdin/teams","hooks_url":"https://api.github.com/repos/sindresorhus/get-stdin/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/get-stdin/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/get-stdin/events","assignees_url":"https://api.github.com/repos/sindresorhus/get-stdin/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/get-stdin/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/get-stdin/tags","blobs_url":"https://api.github.com/repos/sindresorhus/get-stdin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/get-stdin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/get-stdin/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/get-stdin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/get-stdin/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/get-stdin/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/get-stdin/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/get-stdin/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/get-stdin/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/get-stdin/subscription","commits_url":"https://api.github.com/repos/sindresorhus/get-stdin/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/get-stdin/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/get-stdin/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/get-stdin/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/get-stdin/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/get-stdin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/get-stdin/merges","archive_url":"https://api.github.com/repos/sindresorhus/get-stdin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/get-stdin/downloads","issues_url":"https://api.github.com/repos/sindresorhus/get-stdin/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/get-stdin/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/get-stdin/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/get-stdin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/get-stdin/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/get-stdin/releases{/id}","created_at":"2014-02-13T18:33:12Z","updated_at":"2015-09-02T18:56:25Z","pushed_at":"2015-09-08T17:19:17Z","git_url":"git://github.com/sindresorhus/get-stdin.git","ssh_url":"git@github.com:sindresorhus/get-stdin.git","clone_url":"https://github.com/sindresorhus/get-stdin.git","svn_url":"https://github.com/sindresorhus/get-stdin","homepage":"","size":276,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8"},"html":{"href":"https://github.com/sindresorhus/get-stdin/pull/8"},"issue":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/issues/8"},"comments":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/get-stdin/statuses/aa61dbb4a8351c7c42697fef9a37235412c4830a"}}}}