{"action":"created","issue":{"url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/5","labels_url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/5/comments","events_url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/5/events","html_url":"https://github.com/mhkeller/indian-ocean/issues/5","id":66777816,"number":5,"title":"Add some simple support for txt files","user":{"login":"mhkeller","id":498744,"avatar_url":"https://avatars.githubusercontent.com/u/498744?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkeller","html_url":"https://github.com/mhkeller","followers_url":"https://api.github.com/users/mhkeller/followers","following_url":"https://api.github.com/users/mhkeller/following{/other_user}","gists_url":"https://api.github.com/users/mhkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkeller/subscriptions","organizations_url":"https://api.github.com/users/mhkeller/orgs","repos_url":"https://api.github.com/users/mhkeller/repos","events_url":"https://api.github.com/users/mhkeller/events{/privacy}","received_events_url":"https://api.github.com/users/mhkeller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mhkeller/indian-ocean/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-07T05:19:10Z","updated_at":"2015-07-02T15:43:37Z","closed_at":null,"body":"Read a file in with the `utf-8` flag with `fs.readFile` if it's extension is `.txt`.\r\n\r\nAdd support to write out as well."},"comment":{"url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/comments/118073621","html_url":"https://github.com/mhkeller/indian-ocean/issues/5#issuecomment-118073621","issue_url":"https://api.github.com/repos/mhkeller/indian-ocean/issues/5","id":118073621,"user":{"login":"mhkeller","id":498744,"avatar_url":"https://avatars.githubusercontent.com/u/498744?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkeller","html_url":"https://github.com/mhkeller","followers_url":"https://api.github.com/users/mhkeller/followers","following_url":"https://api.github.com/users/mhkeller/following{/other_user}","gists_url":"https://api.github.com/users/mhkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkeller/subscriptions","organizations_url":"https://api.github.com/users/mhkeller/orgs","repos_url":"https://api.github.com/users/mhkeller/repos","events_url":"https://api.github.com/users/mhkeller/events{/privacy}","received_events_url":"https://api.github.com/users/mhkeller/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T15:43:37Z","updated_at":"2015-07-02T15:43:37Z","body":"This feature I was just thinking as a simple way to read in a file as utf-8, essentially `fs.readFile(path, 'utf-8', cb)`. Same as calling `toString()` without passing in the `utf-8` flag.\r\n\r\nIf you were to read in a json file as text then you would manually `JSON.parse`. We could add support for `.jsonlines` files though, which is more of what you're getting at."}}