UNPKG

statement-parser-fab

Version:

Parse bank and credit card statements. Updated fork with FAB (First Abu Dhabi Bank) support and maintained dependencies.

18 lines (17 loc) 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parsePdfs = void 0; const all_parsers_1 = require("./all-parsers"); async function parsePdfs(pdfs, debug = false) { const parsedPdfs = await Promise.all(pdfs.map(async (pdf) => { return { ...pdf, data: await all_parsers_1.parsers[pdf.type].parsePdf({ debug, ...pdf.parserInput, }), }; })); return parsedPdfs; } exports.parsePdfs = parsePdfs;