dbfparser
v0.0.0
Published
dBase table file parser which accepts streams
Downloads
2
Readme
DBF Parser
DBF = dBase File
find more info in the DBFstruct.htm
or where it was grabbed and this seems also to match.
will not work with dBASE Version 7 Table File
usage
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