1.0.26 • Published 3 years ago

dbfstream v1.0.26

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

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);
});
  • Due to how the parser is written, currently the only condition that emits an error is insufficient bytes in the header.

dbf file stream end:

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

Donate

Donate

1.0.26

3 years ago

1.0.25

4 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

7 years ago

1.0.18

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago