-
Notifications
You must be signed in to change notification settings - Fork 104
Respecting encoding? #14
Copy link
Copy link
Closed
Description
Shouldn't enc in the below example be 'utf8'? In node 0.10.26 it's buffer:
var fs = require('fs');
var through2 = require('through2');
fs.createReadStream('./file.json', { encoding: 'utf8' })
.pipe(through2(function(chunk, enc, cb) {
console.log('chunk', chunk, 'enc', enc);
this.push(chunk);
cb();
}))Is it expected that transforms are doing string conversions? Am I doing something wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels