{"action":"created","issue":{"url":"https://api.github.com/repos/workshopper/learnyounode/issues/304","labels_url":"https://api.github.com/repos/workshopper/learnyounode/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/workshopper/learnyounode/issues/304/comments","events_url":"https://api.github.com/repos/workshopper/learnyounode/issues/304/events","html_url":"https://github.com/workshopper/learnyounode/issues/304","id":81269007,"number":304,"title":"\"First Async IO\" not returning string w/'/n'","user":{"login":"Chrinkus","id":11565931,"avatar_url":"https://avatars.githubusercontent.com/u/11565931?v=3","gravatar_id":"","url":"https://api.github.com/users/Chrinkus","html_url":"https://github.com/Chrinkus","followers_url":"https://api.github.com/users/Chrinkus/followers","following_url":"https://api.github.com/users/Chrinkus/following{/other_user}","gists_url":"https://api.github.com/users/Chrinkus/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrinkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrinkus/subscriptions","organizations_url":"https://api.github.com/users/Chrinkus/orgs","repos_url":"https://api.github.com/users/Chrinkus/repos","events_url":"https://api.github.com/users/Chrinkus/events{/privacy}","received_events_url":"https://api.github.com/users/Chrinkus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T04:29:04Z","updated_at":"2015-05-27T05:18:06Z","closed_at":null,"body":"When I log data w/o 'utf8' it returns a buffer file as expected. With 'utf8' it returns a ton of text however the text does not contain '/n'.\r\n\r\nCode:\r\n\r\nvar fs = require('fs');\r\n\r\nfs.readFile(process.argv[2], 'utf8', function logLines(err, data) {\r\n  console.log(data.split('/n').length - 1);\r\n})\r\n"},"comment":{"url":"https://api.github.com/repos/workshopper/learnyounode/issues/comments/105760771","html_url":"https://github.com/workshopper/learnyounode/issues/304#issuecomment-105760771","issue_url":"https://api.github.com/repos/workshopper/learnyounode/issues/304","id":105760771,"user":{"login":"Chrinkus","id":11565931,"avatar_url":"https://avatars.githubusercontent.com/u/11565931?v=3","gravatar_id":"","url":"https://api.github.com/users/Chrinkus","html_url":"https://github.com/Chrinkus","followers_url":"https://api.github.com/users/Chrinkus/followers","following_url":"https://api.github.com/users/Chrinkus/following{/other_user}","gists_url":"https://api.github.com/users/Chrinkus/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrinkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrinkus/subscriptions","organizations_url":"https://api.github.com/users/Chrinkus/orgs","repos_url":"https://api.github.com/users/Chrinkus/repos","events_url":"https://api.github.com/users/Chrinkus/events{/privacy}","received_events_url":"https://api.github.com/users/Chrinkus/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T05:18:06Z","updated_at":"2015-05-27T05:18:06Z","body":"are you kidding me?! i stared at this code for an hour. being new sucks."}}