{"action":"created","issue":{"url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/49","repository_url":"https://api.github.com/repos/wdavidw/node-csv-parse","labels_url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/49/comments","events_url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/49/events","html_url":"https://github.com/wdavidw/node-csv-parse/issues/49","id":85705090,"number":49,"title":"How to get Parsing counters","user":{"login":"Karabi-Choudhury","id":7899658,"avatar_url":"https://avatars.githubusercontent.com/u/7899658?v=3","gravatar_id":"","url":"https://api.github.com/users/Karabi-Choudhury","html_url":"https://github.com/Karabi-Choudhury","followers_url":"https://api.github.com/users/Karabi-Choudhury/followers","following_url":"https://api.github.com/users/Karabi-Choudhury/following{/other_user}","gists_url":"https://api.github.com/users/Karabi-Choudhury/gists{/gist_id}","starred_url":"https://api.github.com/users/Karabi-Choudhury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karabi-Choudhury/subscriptions","organizations_url":"https://api.github.com/users/Karabi-Choudhury/orgs","repos_url":"https://api.github.com/users/Karabi-Choudhury/repos","events_url":"https://api.github.com/users/Karabi-Choudhury/events{/privacy}","received_events_url":"https://api.github.com/users/Karabi-Choudhury/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wdavidw/node-csv-parse/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-06T05:49:24Z","updated_at":"2016-04-28T15:37:57Z","closed_at":null,"body":"Hi,\r\n\r\nI am using the package to read csv. I want to know the lines that are read and if any line was not getting parsed,then know that row number.\r\nBelow is my code\r\nvar filename = __dirname + '/../../Excel/Order1.csv';\r\n\r\n    var inputCSVFileStream = fs.createReadStream(filename);\r\n\r\n    var outputArr = [];\r\n\r\n    var csvParseOptions = {\r\n      auto_parse: true, // ensures that numeric values remain numeric\r\n      columns: null, // setting this to true will create an array of objects, otherwise it will be an array of arrays rows[(columns[])].\r\n      delimiter: ',',\r\n      /*quote: '',\r\n      relax: true,\r\n      rowDelimiter: 'auto', // this is an issue, I had to set the \\n here as 'auto' wasn't working, nor was 'windows'.  Maybe look at auto-detecting line endings?\r\n      skip_empty_lines: false*/\r\n    };\r\n\r\n    var csvParser = csv.parse(csvParseOptions);\r\n\r\n    csvParser.on('error', function(error) {\r\n      throw error;\r\n    });\r\n\r\n    csvParser.on('readable', function() {\r\n      var record;\r\n\r\n      while (record = csvParser.read()) {\r\n        if (!csvParser.lines) {\r\n          // placeholder:  This is the column header, add additional column headers here\r\n        } else {\r\n          // placeholder:  This is a row of data, add the appropriate field data here aligning with new column headers\r\n        }\r\n\r\n        outputArr.push(record);\r\n      }\r\n\r\n    });\r\n\r\n    csvParser.on('finish', function() {});\r\n\r\n    csvParser.on('end', function() {\r\n      convertToOrderObject(outputArr);\r\n      zipcodeBasedsorting();\r\n    });\r\n\r\n    inputCSVFileStream.pipe(csvParser);\r\n\r\nBasically i want the parser to ignore any line that it couldn't parse and go ahead.Also at the end of the process i want the counters like the rows that are read and the rows which were not parsed"},"comment":{"url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/comments/215470145","html_url":"https://github.com/wdavidw/node-csv-parse/issues/49#issuecomment-215470145","issue_url":"https://api.github.com/repos/wdavidw/node-csv-parse/issues/49","id":215470145,"user":{"login":"zam6ak","id":838582,"avatar_url":"https://avatars.githubusercontent.com/u/838582?v=3","gravatar_id":"","url":"https://api.github.com/users/zam6ak","html_url":"https://github.com/zam6ak","followers_url":"https://api.github.com/users/zam6ak/followers","following_url":"https://api.github.com/users/zam6ak/following{/other_user}","gists_url":"https://api.github.com/users/zam6ak/gists{/gist_id}","starred_url":"https://api.github.com/users/zam6ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zam6ak/subscriptions","organizations_url":"https://api.github.com/users/zam6ak/orgs","repos_url":"https://api.github.com/users/zam6ak/repos","events_url":"https://api.github.com/users/zam6ak/events{/privacy}","received_events_url":"https://api.github.com/users/zam6ak/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T15:37:57Z","updated_at":"2016-04-28T15:37:57Z","body":"title of this issue made me skip over it initially, but I think it could be related to #93 \r\n+1 for \"continueOnError\" but I understand time constraints..."}}