Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
dBase table file (dbf) parser which accepts streams
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitattributes
DBFstruct.htm
README.md
UNLICENSE
dbfParser.js
package.json

README.md

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 dbfparser
Something went wrong with that request. Please try again.