Added dbf reader
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { DBFFile } = require("dbffile");
|
||||
|
||||
async function DecodeEstimate(filePath) {
|
||||
//Path to AD1
|
||||
let dbf = await DBFFile.open("C:\\VPS\\EMS\\687_3_A.LIN");
|
||||
console.log(`DBF file contains ${dbf.recordCount} records.`);
|
||||
console.log(`Field names: ${dbf.fields.map((f) => f.name).join(", ")}`);
|
||||
let records = await dbf.readRecords(100);
|
||||
for (let record of records) console.log(record);
|
||||
}
|
||||
|
||||
exports.DecodeEstimate = DecodeEstimate;
|
||||
|
||||
Reference in New Issue
Block a user