How do I discard a chunk in a NodeJS transform stream and read the next one from the previous stream?
stream.on('data',function(data){}).pipe(rulesCheck).pipe(step1).pipe(step2).pipe(step3).pipe(insertDataIntoDB);
I would like to discard the chunk if it doesn't pass certain criteria in the ruleCheck stream.