https://github.com/agenthackeryt/ez-invoice
https://github.com/agenthackeryt/ez-invoice
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/agenthackeryt/ez-invoice
- Owner: AgentHackerYT
- Created: 2023-09-17T09:26:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-03T10:58:34.000Z (4 months ago)
- Last Synced: 2026-02-03T23:49:03.060Z (4 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ez Invoice
- A Simple Invoice Generator for starters

# How to use
- Creating an Invoice
```js
const { createInvoice } = require("ez-invoice")
const { createWriteStream } = require("fs")
const options = {
storeName: "Fruit Store",
tax: 10,
currency: "$",
paymentMode: "Cash",
location: "XYZ",
invoiceID: "123456"
}
let items = [
{
name: "Apple",
beforeTax: 2
},
{
name: "Banana",
beforeTax: 3
},
]
const invoice = createInvoice(options, items)
invoice.png.pipe(createWriteStream("./invoice.png"))
//or
invoice.jpeg.pipe(createWriteStream("./invoice.jpeg"))
```