@anhquoc96/fastxml-banking
v0.1.2
Published
Banking and UBL profile foundations for fastxml.
Readme
@anhquoc96/fastxml-banking
Banking document profile helpers for Node.js and Deno, including OASIS UBL foundations.
Installation
npm install @anhquoc96/fastxml-banking @anhquoc96/fastxml-schemaValidate a UBL Invoice
import { createUblInvoiceProfile, parseBanking } from "@anhquoc96/fastxml-banking";
import { parseXsd } from "@anhquoc96/fastxml-schema";
const schema = parseXsd(ublInvoiceSchemaText);
const profile = createUblInvoiceProfile(schema);
const invoice = parseBanking(invoiceXml, profile);The package exports namespace constants for UBL Invoice, Order, and CreditNote.
Use parseBankingStream() for large or streamed documents.
Scope
- UBL document namespace constants.
- UBL Invoice root profile.
- Optional application-provided UBL XSD validation.
- Strict namespace-aware parsing for strings and streams.
UBL versions, document schemas, regional extensions, tax rules, payment rules, and accounting semantics are supplied explicitly by the application. The package does not bundle a complete banking implementation guide.
Development
npm run build --workspace @anhquoc96/fastxml-banking
npm run typecheck --workspace @anhquoc96/fastxml-bankingLicense
MIT License. See the package LICENSE file.
