DBFFile
Summary
Read and write .dbf (dBase III) files in Node.js:
- Supports
C
(string) ,N
(numeric) ,L
(logical) andD
(date) field types - Can open an existing .dbf file
- Can access all field descriptors
- Can access total record count
- Can read records in arbitrary-sized batches
- Supports very large files
- Can create a new .dbf file
- Can use field descriptors from a hash of from another instance
- Can append records to an existing .dbf file
- Supports very large files
- All operations are asyncronous and return a promise
Installation
npm install dbffile-th
Example: reading a .dbf file
var DBFFile = ; DBFFile ;
Example: writing a .dbf file
var DBFFile = ; var fieldDescriptors = name: 'fname' type: 'C' size: 255 name: 'lname' type: 'C' size: 255 ; var rows = fname: 'Joe' lname: 'Bloggs' fname: 'Mary' lname: 'Smith' ; DBFFile ;
API
The module exports two functions and a class, as follows:
/** Open an existing DBF file. */; /** Create a new DBF file with no records. */; /** Represents a DBF file. */