node-byline
node-byline copied to clipboard
Does this package work?
I get no output, no errors, no way to debug.
Nothing.
Works for me. Post code and file you're running it on?
Plus OS, Node version, etc.
I think the issue was my file is UTF-16. You should check if you can support that or custom encodings.
I changed lib now however so I can not test further.
Win 10 and latest nodejs.
@Zyles For me, the following worked with a UTF-16 encoded file:
byline(fs.createReadStream('test.txt', { encoding: 'utf16' }))
Did you remember to change the encoding in your read stream? Encoding isn't really handled by this module, it gets a raw read stream