Skip to content

mickeyjohn/dbfstream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Build status npm version NPM Downloads

DBFStream

This is a stream base .dbf Parser Based on https://github.com/tamtakoe/node-dbf

Usage

creat dbf stream:

@source: dbf file path / readable stream const dbf = dbfstream(source, encoding);

const dbfstream = require('dbfstream');

var dbf = dbfstream('./test.dbf', 'utf-8');

get dbf file header:

dbf.on('header', header => {
  console.log(header);
});

get dbf file data:

dbf.on('readable', () => {
  console.log(stream.read());
});

//or flowing mode
dbf.on('data', (data) => {
    console.log(data);
});

get dbf file error

dbf.on('error', (err) => {
  console.log(err);
});

dbf file stream end:

dbf.on('end', () => {
    console.log('stream end');
});

About

dbf file parser (stream version)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%