The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

384686 (11) [Avatar] Offline
#1
The following 2 lines contain a typo in the pdf version:

csvOutputStream._write = ([chunk], encoding, callback) => { //#E
    var outputCSV = papaparse.unparse(chunk, { //#F


The square brackets around chunk should be the opposite way about: they shouldn't be there when it's passed into _write(), but they should be there when it's passed into unparse(). i.e.:

csvOutputStream._write = (chunk, encoding, callback) => {
    var outputCSV = papaparse.unparse([chunk], {



The listing in the github repo is correct.
437073 (4) [Avatar] Offline
#2
Thanks for your input, this has been fixed.