node-byline icon indicating copy to clipboard operation
node-byline copied to clipboard

Does this package work?

Open Zyles opened this issue 8 years ago • 3 comments

I get no output, no errors, no way to debug.

Nothing.

Zyles avatar Jun 01 '17 06:06 Zyles

Works for me. Post code and file you're running it on?

Plus OS, Node version, etc.

popey456963 avatar Jul 07 '17 01:07 popey456963

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 avatar Jul 08 '17 20:07 Zyles

@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

popey456963 avatar Jul 09 '17 01:07 popey456963