# invoice-generator-com

> Wrapper for invoice-generator.com

Latest version **2.0.0** (published 2017-04-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install invoice-generator-com
pnpm add invoice-generator-com
yarn add invoice-generator-com
bun add invoice-generator-com
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-04-28 |
| First published | 2017-04-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Janek Rahrt |
| Maintainers | janek26 |

## Links

- npm: https://www.npmjs.com/package/invoice-generator-com
- npm.io page: https://npm.io/package/invoice-generator-com

## Recent versions

- 2.0.0 (latest) — 2017-04-28
- 1.0.0 — 2017-04-28

## README

Invoice Generator - by invoice-generator.com
=======================

It's fully **free** and easy to use.


e.g.
```JavaScript
const fs = require('fs');
const invoicegen = require('invoice-generator-com');

const invoice = {
    logo: "http://invoiced.com/img/logo-invoice.png",
    from: "Invoiced\n701 Brazos St\nAustin, TX 78748",
    to: "Johnny Appleseed",
    currency: "usd",
    number: "INV-0001",
    payment_terms: "Auto-Billed - Do Not Pay",
    items: [
        {
            name: "Subscription to Starter",
            quantity: 1,
            unit_cost: 50
        }
    ],
    fields: {
        tax: "%"
    },
    tax: 5,
    notes: "Thanks for being an awesome customer!",
    terms: "No need to submit payment. You will be auto-billed for this invoice."
}

invoicegen(invoice, 'invoice.pdf')
  .then((PDFbuffer) => {
    let filename = "invoice.pdf"
    fs.writeFile(filename, PDFbuffer, () => console.log("Saved in: " + filename))
  })
  .catch(err => console.log("Error: " + err))
```

More Information/API: [invoice-generator.com](invoice-generator.com)

---
_Source: https://npm.io/package/invoice-generator-com · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
