{"action":"created","comment":{"url":"https://api.github.com/repos/maleck13/readline/pulls/comments/44218696","id":44218696,"diff_hunk":"@@ -29,8 +29,10 @@ var readLine = module.exports = function(file, opts) {\n   .on('data', function(data) {\n      for (var i = 0; i < data.length; i++) {\n         if (data[i] == 10 || data[i] == 13) { // Newline char was found.\n-          lineCount++;\n-          if (lineLength) emit(lineCount, byteCount);\n+          if (data[i] == 10) {","path":"readline.js","position":6,"original_position":6,"commit_id":"0e7d798a239861238ee69d647bb4d5923a143109","original_commit_id":"0e7d798a239861238ee69d647bb4d5923a143109","user":{"login":"maleck13","id":304628,"avatar_url":"https://avatars.githubusercontent.com/u/304628?v=3","gravatar_id":"","url":"https://api.github.com/users/maleck13","html_url":"https://github.com/maleck13","followers_url":"https://api.github.com/users/maleck13/followers","following_url":"https://api.github.com/users/maleck13/following{/other_user}","gists_url":"https://api.github.com/users/maleck13/gists{/gist_id}","starred_url":"https://api.github.com/users/maleck13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maleck13/subscriptions","organizations_url":"https://api.github.com/users/maleck13/orgs","repos_url":"https://api.github.com/users/maleck13/repos","events_url":"https://api.github.com/users/maleck13/events{/privacy}","received_events_url":"https://api.github.com/users/maleck13/received_events","type":"User","site_admin":false},"body":"why do you not want 13 \\r to count as a new line?","created_at":"2015-11-07T23:38:26Z","updated_at":"2015-11-07T23:38:26Z","html_url":"https://github.com/maleck13/readline/pull/14#discussion_r44218696","pull_request_url":"https://api.github.com/repos/maleck13/readline/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/maleck13/readline/pulls/comments/44218696"},"html":{"href":"https://github.com/maleck13/readline/pull/14#discussion_r44218696"},"pull_request":{"href":"https://api.github.com/repos/maleck13/readline/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/maleck13/readline/pulls/14","id":46940297,"html_url":"https://github.com/maleck13/readline/pull/14","diff_url":"https://github.com/maleck13/readline/pull/14.diff","patch_url":"https://github.com/maleck13/readline/pull/14.patch","issue_url":"https://api.github.com/repos/maleck13/readline/issues/14","number":14,"state":"open","locked":false,"title":"fix reading blank lines & lineCount with #10#13 line terminators","user":{"login":"jamg44","id":1411740,"avatar_url":"https://avatars.githubusercontent.com/u/1411740?v=3","gravatar_id":"","url":"https://api.github.com/users/jamg44","html_url":"https://github.com/jamg44","followers_url":"https://api.github.com/users/jamg44/followers","following_url":"https://api.github.com/users/jamg44/following{/other_user}","gists_url":"https://api.github.com/users/jamg44/gists{/gist_id}","starred_url":"https://api.github.com/users/jamg44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamg44/subscriptions","organizations_url":"https://api.github.com/users/jamg44/orgs","repos_url":"https://api.github.com/users/jamg44/repos","events_url":"https://api.github.com/users/jamg44/events{/privacy}","received_events_url":"https://api.github.com/users/jamg44/received_events","type":"User","site_admin":false},"body":"- fix reading blank lines \r\n- fix lineCount with #10#13 line terminated files","created_at":"2015-10-06T18:34:33Z","updated_at":"2015-11-07T23:38:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5337bddb2f664fcfbb5858cb5848f2c2ff419b54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maleck13/readline/pulls/14/commits","review_comments_url":"https://api.github.com/repos/maleck13/readline/pulls/14/comments","review_comment_url":"https://api.github.com/repos/maleck13/readline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maleck13/readline/issues/14/comments","statuses_url":"https://api.github.com/repos/maleck13/readline/statuses/0e7d798a239861238ee69d647bb4d5923a143109","head":{"label":"jamg44:master","ref":"master","sha":"0e7d798a239861238ee69d647bb4d5923a143109","user":{"login":"jamg44","id":1411740,"avatar_url":"https://avatars.githubusercontent.com/u/1411740?v=3","gravatar_id":"","url":"https://api.github.com/users/jamg44","html_url":"https://github.com/jamg44","followers_url":"https://api.github.com/users/jamg44/followers","following_url":"https://api.github.com/users/jamg44/following{/other_user}","gists_url":"https://api.github.com/users/jamg44/gists{/gist_id}","starred_url":"https://api.github.com/users/jamg44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamg44/subscriptions","organizations_url":"https://api.github.com/users/jamg44/orgs","repos_url":"https://api.github.com/users/jamg44/repos","events_url":"https://api.github.com/users/jamg44/events{/privacy}","received_events_url":"https://api.github.com/users/jamg44/received_events","type":"User","site_admin":false},"repo":{"id":43770027,"name":"readline","full_name":"jamg44/readline","owner":{"login":"jamg44","id":1411740,"avatar_url":"https://avatars.githubusercontent.com/u/1411740?v=3","gravatar_id":"","url":"https://api.github.com/users/jamg44","html_url":"https://github.com/jamg44","followers_url":"https://api.github.com/users/jamg44/followers","following_url":"https://api.github.com/users/jamg44/following{/other_user}","gists_url":"https://api.github.com/users/jamg44/gists{/gist_id}","starred_url":"https://api.github.com/users/jamg44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamg44/subscriptions","organizations_url":"https://api.github.com/users/jamg44/orgs","repos_url":"https://api.github.com/users/jamg44/repos","events_url":"https://api.github.com/users/jamg44/events{/privacy}","received_events_url":"https://api.github.com/users/jamg44/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamg44/readline","description":"read line module for node js","fork":true,"url":"https://api.github.com/repos/jamg44/readline","forks_url":"https://api.github.com/repos/jamg44/readline/forks","keys_url":"https://api.github.com/repos/jamg44/readline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamg44/readline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamg44/readline/teams","hooks_url":"https://api.github.com/repos/jamg44/readline/hooks","issue_events_url":"https://api.github.com/repos/jamg44/readline/issues/events{/number}","events_url":"https://api.github.com/repos/jamg44/readline/events","assignees_url":"https://api.github.com/repos/jamg44/readline/assignees{/user}","branches_url":"https://api.github.com/repos/jamg44/readline/branches{/branch}","tags_url":"https://api.github.com/repos/jamg44/readline/tags","blobs_url":"https://api.github.com/repos/jamg44/readline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamg44/readline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamg44/readline/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamg44/readline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamg44/readline/statuses/{sha}","languages_url":"https://api.github.com/repos/jamg44/readline/languages","stargazers_url":"https://api.github.com/repos/jamg44/readline/stargazers","contributors_url":"https://api.github.com/repos/jamg44/readline/contributors","subscribers_url":"https://api.github.com/repos/jamg44/readline/subscribers","subscription_url":"https://api.github.com/repos/jamg44/readline/subscription","commits_url":"https://api.github.com/repos/jamg44/readline/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamg44/readline/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamg44/readline/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamg44/readline/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamg44/readline/contents/{+path}","compare_url":"https://api.github.com/repos/jamg44/readline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamg44/readline/merges","archive_url":"https://api.github.com/repos/jamg44/readline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamg44/readline/downloads","issues_url":"https://api.github.com/repos/jamg44/readline/issues{/number}","pulls_url":"https://api.github.com/repos/jamg44/readline/pulls{/number}","milestones_url":"https://api.github.com/repos/jamg44/readline/milestones{/number}","notifications_url":"https://api.github.com/repos/jamg44/readline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamg44/readline/labels{/name}","releases_url":"https://api.github.com/repos/jamg44/readline/releases{/id}","created_at":"2015-10-06T18:24:29Z","updated_at":"2015-10-06T18:24:30Z","pushed_at":"2015-10-06T18:32:19Z","git_url":"git://github.com/jamg44/readline.git","ssh_url":"git@github.com:jamg44/readline.git","clone_url":"https://github.com/jamg44/readline.git","svn_url":"https://github.com/jamg44/readline","homepage":null,"size":818,"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":"maleck13:master","ref":"master","sha":"b756e010c5d30629caed6cf088679c9f3e00ceae","user":{"login":"maleck13","id":304628,"avatar_url":"https://avatars.githubusercontent.com/u/304628?v=3","gravatar_id":"","url":"https://api.github.com/users/maleck13","html_url":"https://github.com/maleck13","followers_url":"https://api.github.com/users/maleck13/followers","following_url":"https://api.github.com/users/maleck13/following{/other_user}","gists_url":"https://api.github.com/users/maleck13/gists{/gist_id}","starred_url":"https://api.github.com/users/maleck13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maleck13/subscriptions","organizations_url":"https://api.github.com/users/maleck13/orgs","repos_url":"https://api.github.com/users/maleck13/repos","events_url":"https://api.github.com/users/maleck13/events{/privacy}","received_events_url":"https://api.github.com/users/maleck13/received_events","type":"User","site_admin":false},"repo":{"id":11324744,"name":"readline","full_name":"maleck13/readline","owner":{"login":"maleck13","id":304628,"avatar_url":"https://avatars.githubusercontent.com/u/304628?v=3","gravatar_id":"","url":"https://api.github.com/users/maleck13","html_url":"https://github.com/maleck13","followers_url":"https://api.github.com/users/maleck13/followers","following_url":"https://api.github.com/users/maleck13/following{/other_user}","gists_url":"https://api.github.com/users/maleck13/gists{/gist_id}","starred_url":"https://api.github.com/users/maleck13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maleck13/subscriptions","organizations_url":"https://api.github.com/users/maleck13/orgs","repos_url":"https://api.github.com/users/maleck13/repos","events_url":"https://api.github.com/users/maleck13/events{/privacy}","received_events_url":"https://api.github.com/users/maleck13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maleck13/readline","description":"read line module for node js","fork":false,"url":"https://api.github.com/repos/maleck13/readline","forks_url":"https://api.github.com/repos/maleck13/readline/forks","keys_url":"https://api.github.com/repos/maleck13/readline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maleck13/readline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maleck13/readline/teams","hooks_url":"https://api.github.com/repos/maleck13/readline/hooks","issue_events_url":"https://api.github.com/repos/maleck13/readline/issues/events{/number}","events_url":"https://api.github.com/repos/maleck13/readline/events","assignees_url":"https://api.github.com/repos/maleck13/readline/assignees{/user}","branches_url":"https://api.github.com/repos/maleck13/readline/branches{/branch}","tags_url":"https://api.github.com/repos/maleck13/readline/tags","blobs_url":"https://api.github.com/repos/maleck13/readline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maleck13/readline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maleck13/readline/git/refs{/sha}","trees_url":"https://api.github.com/repos/maleck13/readline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maleck13/readline/statuses/{sha}","languages_url":"https://api.github.com/repos/maleck13/readline/languages","stargazers_url":"https://api.github.com/repos/maleck13/readline/stargazers","contributors_url":"https://api.github.com/repos/maleck13/readline/contributors","subscribers_url":"https://api.github.com/repos/maleck13/readline/subscribers","subscription_url":"https://api.github.com/repos/maleck13/readline/subscription","commits_url":"https://api.github.com/repos/maleck13/readline/commits{/sha}","git_commits_url":"https://api.github.com/repos/maleck13/readline/git/commits{/sha}","comments_url":"https://api.github.com/repos/maleck13/readline/comments{/number}","issue_comment_url":"https://api.github.com/repos/maleck13/readline/issues/comments{/number}","contents_url":"https://api.github.com/repos/maleck13/readline/contents/{+path}","compare_url":"https://api.github.com/repos/maleck13/readline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maleck13/readline/merges","archive_url":"https://api.github.com/repos/maleck13/readline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maleck13/readline/downloads","issues_url":"https://api.github.com/repos/maleck13/readline/issues{/number}","pulls_url":"https://api.github.com/repos/maleck13/readline/pulls{/number}","milestones_url":"https://api.github.com/repos/maleck13/readline/milestones{/number}","notifications_url":"https://api.github.com/repos/maleck13/readline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maleck13/readline/labels{/name}","releases_url":"https://api.github.com/repos/maleck13/readline/releases{/id}","created_at":"2013-07-10T21:16:04Z","updated_at":"2015-09-30T03:10:46Z","pushed_at":"2015-10-06T18:34:34Z","git_url":"git://github.com/maleck13/readline.git","ssh_url":"git@github.com:maleck13/readline.git","clone_url":"https://github.com/maleck13/readline.git","svn_url":"https://github.com/maleck13/readline","homepage":null,"size":998,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maleck13/readline/pulls/14"},"html":{"href":"https://github.com/maleck13/readline/pull/14"},"issue":{"href":"https://api.github.com/repos/maleck13/readline/issues/14"},"comments":{"href":"https://api.github.com/repos/maleck13/readline/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/maleck13/readline/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/maleck13/readline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maleck13/readline/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/maleck13/readline/statuses/0e7d798a239861238ee69d647bb4d5923a143109"}}}}