dBase table file parser which accepts streams
npm install dbfparserDBFstruct.htm or where it was grabbed and this seems also to match.will not work with dBASE Version 7 Table File
javascript
var parser = require('fs').createReadStream('file.dbf').pipe(new require('dbfParser')());
parser.on('header', function(header) {
// here you can do stuff like renaming property names
header.fieldDescriptors[0].name = 'newName';
// do you custom conversions
header.fieldDescriptors[0].parse = function(chunk) {
return chuck.toString('utf8').replace('\s+$', '');
};
});
parser.on('record', function(record) {
// yay a record
});
`installation
`
npm install git://github.com/Bonuspunkt/dbfParser.git
``