iHub invoice generator allows you to quickly build invoices.
First you need to create a .npmrc or change your local npm registry to point for our internal private registry:
registry=https://registry.infracommerce.com.br/repository/npm-local/
Then on your project folder:
$ npm i -S ihub-danfe
There is two exports only, a type and a function:
Type Invoice
{
}
buildA4(invoice: Invoice, img: Buffer): Buffer