{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/1797","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/1797/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/1797/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/1797/events","html_url":"https://github.com/nodejs/io.js/issues/1797","id":80849157,"number":1797,"title":"fs.readFile with encoding as 2nd argument is not documented","user":{"login":"rla","id":1105347,"avatar_url":"https://avatars.githubusercontent.com/u/1105347?v=3","gravatar_id":"","url":"https://api.github.com/users/rla","html_url":"https://github.com/rla","followers_url":"https://api.github.com/users/rla/followers","following_url":"https://api.github.com/users/rla/following{/other_user}","gists_url":"https://api.github.com/users/rla/gists{/gist_id}","starred_url":"https://api.github.com/users/rla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rla/subscriptions","organizations_url":"https://api.github.com/users/rla/orgs","repos_url":"https://api.github.com/users/rla/repos","events_url":"https://api.github.com/users/rla/events{/privacy}","received_events_url":"https://api.github.com/users/rla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/io.js/labels/doc","name":"doc","color":"006b75"},{"url":"https://api.github.com/repos/nodejs/io.js/labels/fs","name":"fs","color":"0052cc"},{"url":"https://api.github.com/repos/nodejs/io.js/labels/good%20first%20contribution","name":"good first contribution","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T08:06:22Z","updated_at":"2015-05-27T03:13:05Z","closed_at":null,"body":"It is very common to call fs.readFile with the encoding name directly as the 2nd argument. Like\r\n\r\n    fs.readFile('my_file.txt', 'utf8', cb)\r\n\r\nYet this call signature is not clearly documented:\r\n\r\n<https://iojs.org/api/fs.html#fs_fs_readfile_filename_options_callback> (link date 2015-05-26)"},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/105741353","html_url":"https://github.com/nodejs/io.js/issues/1797#issuecomment-105741353","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/1797","id":105741353,"user":{"login":"Trott","id":718899,"avatar_url":"https://avatars.githubusercontent.com/u/718899?v=3","gravatar_id":"","url":"https://api.github.com/users/Trott","html_url":"https://github.com/Trott","followers_url":"https://api.github.com/users/Trott/followers","following_url":"https://api.github.com/users/Trott/following{/other_user}","gists_url":"https://api.github.com/users/Trott/gists{/gist_id}","starred_url":"https://api.github.com/users/Trott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trott/subscriptions","organizations_url":"https://api.github.com/users/Trott/orgs","repos_url":"https://api.github.com/users/Trott/repos","events_url":"https://api.github.com/users/Trott/events{/privacy}","received_events_url":"https://api.github.com/users/Trott/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T03:13:05Z","updated_at":"2015-05-27T03:13:05Z","body":"PR #1806 submitted to address this."}}