{"action":"created","issue":{"url":"https://api.github.com/repos/bevry/cson/issues/46","labels_url":"https://api.github.com/repos/bevry/cson/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/bevry/cson/issues/46/comments","events_url":"https://api.github.com/repos/bevry/cson/issues/46/events","html_url":"https://github.com/bevry/cson/pull/46","id":37399793,"number":46,"title":"Fix #8: Allow standard input","user":{"login":"Zearin","id":630124,"avatar_url":"https://avatars.githubusercontent.com/u/630124?v=3","gravatar_id":"","url":"https://api.github.com/users/Zearin","html_url":"https://github.com/Zearin","followers_url":"https://api.github.com/users/Zearin/followers","following_url":"https://api.github.com/users/Zearin/following{/other_user}","gists_url":"https://api.github.com/users/Zearin/gists{/gist_id}","starred_url":"https://api.github.com/users/Zearin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zearin/subscriptions","organizations_url":"https://api.github.com/users/Zearin/orgs","repos_url":"https://api.github.com/users/Zearin/repos","events_url":"https://api.github.com/users/Zearin/events{/privacy}","received_events_url":"https://api.github.com/users/Zearin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-08T18:36:03Z","updated_at":"2015-02-06T03:21:36Z","closed_at":"2015-02-06T03:21:36Z","pull_request":{"url":"https://api.github.com/repos/bevry/cson/pulls/46","html_url":"https://github.com/bevry/cson/pull/46","diff_url":"https://github.com/bevry/cson/pull/46.diff","patch_url":"https://github.com/bevry/cson/pull/46.patch"},"body":"The tools under `bin/` now accept input from STDIN.  \r\n\r\n * Input can be piped in (`cat file.cson | cson2json -`)\r\n * Input can be redirected (`cson2json - < file.cson`)\r\n\r\nThere are a few caveats:\r\n\r\n * **There are no tests for the executables.**\r\n  \r\n  (I tried, but couldn’t.  I’m sure it’s be easy, but I’m continuing to learn Node, and it has a myriad of test frameworks.)\r\n\r\n * **Executables only read from STDIN when passing `-` as the only argument.**\r\n\r\n * **If `-` is passed without actually piping (or redirecting) anything**, the program waits for input until it receives <kbd>CTL</kbd>+<kbd>D</kbd>.\r\n\r\n  (I’d like to fix this in the future.  For now, at least it’s consistent with the behavior of `cat - `.  Hitting  will tell the program to stop waiting.)"},"comment":{"url":"https://api.github.com/repos/bevry/cson/issues/comments/73177050","html_url":"https://github.com/bevry/cson/pull/46#issuecomment-73177050","issue_url":"https://api.github.com/repos/bevry/cson/issues/46","id":73177050,"user":{"login":"balupton","id":61148,"avatar_url":"https://avatars.githubusercontent.com/u/61148?v=3","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T03:21:36Z","updated_at":"2015-02-06T03:21:36Z","body":"Fixed in v2"}}