node-csvtojson
node-csvtojson copied to clipboard
tests: added data file and test coverage to demonstrate encodings
The library uses fs.createReadStream
to read files when fromFile
is called and passes through options, including encoding, to the
fs call. This is not obvious, resulting in issue #402. I have added
a test to demonstrate this capability and a data file encoded in
latin1 for use in the test.
Issue #402