Open easeway opened 11 years ago
It's not always ANSI too, so #7 is more preferrable, though even more brief variant is possible, https://github.com/irandom/node-dbf/commit/66ae4b338070c4615f3faa372d319d1ba4a0d13f. If I manage to add tests and if the author still maintains the package I will request a pull from my fork.
For String fields, DBF doesn't always encodes it as UTF-8, normally plain ANSI. So remove 'utf-8' from parameter. For Number fields, parseFloat should be used instead of parseInt.