{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/nkbt/minicat/pulls/15","id":64910886,"html_url":"https://github.com/nkbt/minicat/pull/15","diff_url":"https://github.com/nkbt/minicat/pull/15.diff","patch_url":"https://github.com/nkbt/minicat/pull/15.patch","issue_url":"https://api.github.com/repos/nkbt/minicat/issues/15","number":15,"state":"closed","locked":false,"title":"Add support for copying stdin","user":{"login":"kevinoid","id":336433,"avatar_url":"https://avatars.githubusercontent.com/u/336433?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinoid","html_url":"https://github.com/kevinoid","followers_url":"https://api.github.com/users/kevinoid/followers","following_url":"https://api.github.com/users/kevinoid/following{/other_user}","gists_url":"https://api.github.com/users/kevinoid/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinoid/subscriptions","organizations_url":"https://api.github.com/users/kevinoid/orgs","repos_url":"https://api.github.com/users/kevinoid/repos","events_url":"https://api.github.com/users/kevinoid/events{/privacy}","received_events_url":"https://api.github.com/users/kevinoid/received_events","type":"User","site_admin":false},"body":"This PR adds support for concatenating `stdin`, both in place of the file name `-` and when no file arguments are provided, as specified by POSIX/SUSv3.\r\n\r\nIt uses the `fs-file-sync-fd` module that I created specifically for this purpose, which contains a copy of `readFileSync` from nodejs/node@08039628 which introduced support for reading from an open file descriptor.  If you are concerned about introducing a dependency, the code could easily be copied into this module.\r\n\r\nAlthough the code is covered by the functional tests, it is not covered by the unit tests.  This reduced the coverage numbers a bit.  Without access to the `dup2(2)` function, I didn't see a good way to test without forking.  Let me know how you'd like to handle this, if at all.\r\n\r\nThanks,\r\nKevin","created_at":"2016-04-01T08:26:30Z","updated_at":"2016-04-01T11:00:07Z","closed_at":"2016-04-01T11:00:07Z","merged_at":"2016-04-01T11:00:07Z","merge_commit_sha":"1de581735776203523f3168856f893e97f8cc2a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nkbt/minicat/pulls/15/commits","review_comments_url":"https://api.github.com/repos/nkbt/minicat/pulls/15/comments","review_comment_url":"https://api.github.com/repos/nkbt/minicat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nkbt/minicat/issues/15/comments","statuses_url":"https://api.github.com/repos/nkbt/minicat/statuses/14b3260cdd751bfe33ad3850a030a0ad9a1ee1a4","head":{"label":"kevinoid:stdin-sync","ref":"stdin-sync","sha":"14b3260cdd751bfe33ad3850a030a0ad9a1ee1a4","user":{"login":"kevinoid","id":336433,"avatar_url":"https://avatars.githubusercontent.com/u/336433?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinoid","html_url":"https://github.com/kevinoid","followers_url":"https://api.github.com/users/kevinoid/followers","following_url":"https://api.github.com/users/kevinoid/following{/other_user}","gists_url":"https://api.github.com/users/kevinoid/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinoid/subscriptions","organizations_url":"https://api.github.com/users/kevinoid/orgs","repos_url":"https://api.github.com/users/kevinoid/repos","events_url":"https://api.github.com/users/kevinoid/events{/privacy}","received_events_url":"https://api.github.com/users/kevinoid/received_events","type":"User","site_admin":false},"repo":{"id":55215623,"name":"minicat","full_name":"kevinoid/minicat","owner":{"login":"kevinoid","id":336433,"avatar_url":"https://avatars.githubusercontent.com/u/336433?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinoid","html_url":"https://github.com/kevinoid","followers_url":"https://api.github.com/users/kevinoid/followers","following_url":"https://api.github.com/users/kevinoid/following{/other_user}","gists_url":"https://api.github.com/users/kevinoid/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinoid/subscriptions","organizations_url":"https://api.github.com/users/kevinoid/orgs","repos_url":"https://api.github.com/users/kevinoid/repos","events_url":"https://api.github.com/users/kevinoid/events{/privacy}","received_events_url":"https://api.github.com/users/kevinoid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinoid/minicat","description":"Windows compatible `cat` shell command polyfill","fork":true,"url":"https://api.github.com/repos/kevinoid/minicat","forks_url":"https://api.github.com/repos/kevinoid/minicat/forks","keys_url":"https://api.github.com/repos/kevinoid/minicat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinoid/minicat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinoid/minicat/teams","hooks_url":"https://api.github.com/repos/kevinoid/minicat/hooks","issue_events_url":"https://api.github.com/repos/kevinoid/minicat/issues/events{/number}","events_url":"https://api.github.com/repos/kevinoid/minicat/events","assignees_url":"https://api.github.com/repos/kevinoid/minicat/assignees{/user}","branches_url":"https://api.github.com/repos/kevinoid/minicat/branches{/branch}","tags_url":"https://api.github.com/repos/kevinoid/minicat/tags","blobs_url":"https://api.github.com/repos/kevinoid/minicat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinoid/minicat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinoid/minicat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinoid/minicat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinoid/minicat/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinoid/minicat/languages","stargazers_url":"https://api.github.com/repos/kevinoid/minicat/stargazers","contributors_url":"https://api.github.com/repos/kevinoid/minicat/contributors","subscribers_url":"https://api.github.com/repos/kevinoid/minicat/subscribers","subscription_url":"https://api.github.com/repos/kevinoid/minicat/subscription","commits_url":"https://api.github.com/repos/kevinoid/minicat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinoid/minicat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinoid/minicat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinoid/minicat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinoid/minicat/contents/{+path}","compare_url":"https://api.github.com/repos/kevinoid/minicat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinoid/minicat/merges","archive_url":"https://api.github.com/repos/kevinoid/minicat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinoid/minicat/downloads","issues_url":"https://api.github.com/repos/kevinoid/minicat/issues{/number}","pulls_url":"https://api.github.com/repos/kevinoid/minicat/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinoid/minicat/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinoid/minicat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinoid/minicat/labels{/name}","releases_url":"https://api.github.com/repos/kevinoid/minicat/releases{/id}","deployments_url":"https://api.github.com/repos/kevinoid/minicat/deployments","created_at":"2016-04-01T08:19:47Z","updated_at":"2016-04-01T08:19:49Z","pushed_at":"2016-04-01T08:20:24Z","git_url":"git://github.com/kevinoid/minicat.git","ssh_url":"git@github.com:kevinoid/minicat.git","clone_url":"https://github.com/kevinoid/minicat.git","svn_url":"https://github.com/kevinoid/minicat","homepage":"","size":17,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"nkbt:master","ref":"master","sha":"cb252ebdfd6f14a020f4a623cb4e46fe0643b325","user":{"login":"nkbt","id":175264,"avatar_url":"https://avatars.githubusercontent.com/u/175264?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbt","html_url":"https://github.com/nkbt","followers_url":"https://api.github.com/users/nkbt/followers","following_url":"https://api.github.com/users/nkbt/following{/other_user}","gists_url":"https://api.github.com/users/nkbt/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbt/subscriptions","organizations_url":"https://api.github.com/users/nkbt/orgs","repos_url":"https://api.github.com/users/nkbt/repos","events_url":"https://api.github.com/users/nkbt/events{/privacy}","received_events_url":"https://api.github.com/users/nkbt/received_events","type":"User","site_admin":false},"repo":{"id":43175529,"name":"minicat","full_name":"nkbt/minicat","owner":{"login":"nkbt","id":175264,"avatar_url":"https://avatars.githubusercontent.com/u/175264?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbt","html_url":"https://github.com/nkbt","followers_url":"https://api.github.com/users/nkbt/followers","following_url":"https://api.github.com/users/nkbt/following{/other_user}","gists_url":"https://api.github.com/users/nkbt/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbt/subscriptions","organizations_url":"https://api.github.com/users/nkbt/orgs","repos_url":"https://api.github.com/users/nkbt/repos","events_url":"https://api.github.com/users/nkbt/events{/privacy}","received_events_url":"https://api.github.com/users/nkbt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nkbt/minicat","description":"Windows compatible `cat` shell command polyfill","fork":false,"url":"https://api.github.com/repos/nkbt/minicat","forks_url":"https://api.github.com/repos/nkbt/minicat/forks","keys_url":"https://api.github.com/repos/nkbt/minicat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkbt/minicat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkbt/minicat/teams","hooks_url":"https://api.github.com/repos/nkbt/minicat/hooks","issue_events_url":"https://api.github.com/repos/nkbt/minicat/issues/events{/number}","events_url":"https://api.github.com/repos/nkbt/minicat/events","assignees_url":"https://api.github.com/repos/nkbt/minicat/assignees{/user}","branches_url":"https://api.github.com/repos/nkbt/minicat/branches{/branch}","tags_url":"https://api.github.com/repos/nkbt/minicat/tags","blobs_url":"https://api.github.com/repos/nkbt/minicat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkbt/minicat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkbt/minicat/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkbt/minicat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkbt/minicat/statuses/{sha}","languages_url":"https://api.github.com/repos/nkbt/minicat/languages","stargazers_url":"https://api.github.com/repos/nkbt/minicat/stargazers","contributors_url":"https://api.github.com/repos/nkbt/minicat/contributors","subscribers_url":"https://api.github.com/repos/nkbt/minicat/subscribers","subscription_url":"https://api.github.com/repos/nkbt/minicat/subscription","commits_url":"https://api.github.com/repos/nkbt/minicat/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkbt/minicat/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkbt/minicat/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkbt/minicat/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkbt/minicat/contents/{+path}","compare_url":"https://api.github.com/repos/nkbt/minicat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkbt/minicat/merges","archive_url":"https://api.github.com/repos/nkbt/minicat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkbt/minicat/downloads","issues_url":"https://api.github.com/repos/nkbt/minicat/issues{/number}","pulls_url":"https://api.github.com/repos/nkbt/minicat/pulls{/number}","milestones_url":"https://api.github.com/repos/nkbt/minicat/milestones{/number}","notifications_url":"https://api.github.com/repos/nkbt/minicat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkbt/minicat/labels{/name}","releases_url":"https://api.github.com/repos/nkbt/minicat/releases{/id}","deployments_url":"https://api.github.com/repos/nkbt/minicat/deployments","created_at":"2015-09-25T21:07:04Z","updated_at":"2016-03-27T03:11:43Z","pushed_at":"2016-04-01T11:00:08Z","git_url":"git://github.com/nkbt/minicat.git","ssh_url":"git@github.com:nkbt/minicat.git","clone_url":"https://github.com/nkbt/minicat.git","svn_url":"https://github.com/nkbt/minicat","homepage":"","size":23,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nkbt/minicat/pulls/15"},"html":{"href":"https://github.com/nkbt/minicat/pull/15"},"issue":{"href":"https://api.github.com/repos/nkbt/minicat/issues/15"},"comments":{"href":"https://api.github.com/repos/nkbt/minicat/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/nkbt/minicat/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/nkbt/minicat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nkbt/minicat/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/nkbt/minicat/statuses/14b3260cdd751bfe33ad3850a030a0ad9a1ee1a4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nkbt","id":175264,"avatar_url":"https://avatars.githubusercontent.com/u/175264?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbt","html_url":"https://github.com/nkbt","followers_url":"https://api.github.com/users/nkbt/followers","following_url":"https://api.github.com/users/nkbt/following{/other_user}","gists_url":"https://api.github.com/users/nkbt/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbt/subscriptions","organizations_url":"https://api.github.com/users/nkbt/orgs","repos_url":"https://api.github.com/users/nkbt/repos","events_url":"https://api.github.com/users/nkbt/events{/privacy}","received_events_url":"https://api.github.com/users/nkbt/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":61,"deletions":3,"changed_files":4}}