invoice-maker
v0.5.0
Published
Generate invoices from YAML files
Downloads
15
Readme
Invoice Maker
Generate beautiful invoices from YAML files.
Installation
The easiest way to install invoice-maker is to pull its Docker image:
docker pull adius/invoice-maker
Usage
Run the command without any arguments to print the usage information:
$ docker run --rm -v "$PWD":/workdir invoice-maker
Usage: invoice-maker \
[--biller <*.yaml>] \
[--recipient <*.yaml>] \
[--output <*.pdf>] \
[--logo <*.png>] \
[--debug] \
--data <*.yaml>
E.g. to generate the example invoice you can run:
docker run --rm -v "$PWD":/workdir adius/invoice-maker \
--biller tests/biller.yaml \
--recipient tests/recipient.yaml \
--data tests/invoice.yaml \
--logo images/wordmark.png \
--output tests/invoice.pdf
Checkout the tests directory for more example files.
Development
Run Tests:
yarn test
Create screenshot:
convert -density 200 \
tests/invoice.pdf \
-background white \
-flatten \
images/example-invoice.png