invoice-maker

0.5.0 • Public • Published

Invoice Maker

Generate beautiful invoices from YAML files.

Example invoice

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

Readme

Keywords

Package Sidebar

Install

npm i invoice-maker

Weekly Downloads

0

Version

0.5.0

License

ISC

Unpacked Size

217 kB

Total Files

20

Last publish

Collaborators

  • adius