This is a stream base .dbf Parser Based on https://github.com/tamtakoe/node-dbf
@source: dbf file path / readable stream
const dbf = dbfstream(source, encoding);
const dbfstream = require('dbfstream');
var dbf = dbfstream('./test.dbf', 'utf-8');
dbf.on('header', header => {
console.log(header);
});
dbf.on('readable', () => {
console.log(stream.read());
});
//or flowing mode
dbf.on('data', (data) => {
console.log(data);
});
dbf.on('error', (err) => {
console.log(err);
});
dbf.on('end', () => {
console.log('stream end');
});