Install the package
Open Factura is available on npm and can be installed using any JavaScript package manager:Requirements
Open Factura requires the following:- Node.js 14.x or higher, or Bun runtime
- TypeScript 5.0.0 or higher (peer dependency)
Dependencies
The library includes the following dependencies that are installed automatically:@peculiar/webcrypto- Cryptographic operationsnode-forge- Certificate handling and signingxadesjs- XAdES signature format supportxmlbuilder2- XML generationsoap- SOAP client for SRI web servicesnode-fetch- HTTP requests
TypeScript configuration
If you’re using TypeScript, make sure yourtsconfig.json includes:
tsconfig.json