13 lines
438 B
JavaScript
13 lines
438 B
JavaScript
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;
|