
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
nice-invoice-subtotal
Advanced tools
An easy and quick way to create an invoice.
:star: Star us on Github — it helps!
:inbox_tray: 5627 Downloads, Checkout on npm-stat.com
<script src="https://unpkg.com/nice-invoice@1.1.4/dist/index.js"></script>
Checkout article for instllation or Following are quick steps for installing and using this package,
Install nice invoice package by following command.
npm i nice-invoice
Include package main class into your page
const niceInvoice = require("nice-invoice");
Store your invoice details into variable and then generate it.
const invoiceDetail = {
shipping: {
name: "Micheal",
address: "1234 Main Street",
city: "Dubai",
state: "Dubai",
country: "UAE",
postal_code: 94111
},
items: [
{
item: "Chair",
description: "Wooden chair",
quantity: 1,
price: 50.00,
tax: "10%"
},
{
item: "Watch",
description: "Wall watch for office",
quantity: 2,
price: 30.00,
tax: "10%"
},
{
item: "Water Glass Set",
description: "Water glass set for office",
quantity: 1,
price: 35.00,
tax: ""
}
],
subtotal: 156,
total: 156,
order_number: 1234222,
header:{
company_name: "Nice Invoice",
company_logo: "logo.png",
company_address: "Nice Invoice. 123 William Street 1th Floor New York, NY 123456"
},
footer:{
text: "This is footer - you can add any text here"
},
currency_symbol:"$",
date: {
billing_date: "08 August 2020",
due_date: "10 September 2020",
}
};
niceInvoice(invoiceDetail, 'your-invoice-name.pdf');
Following parameters you can leave it blank,
company_logo: company_logo: "",
tax: tax: ""
Contributions and suggestions are very welcome and wanted. I try to respond to pull requests within 24 hours, checkout How to contribute
You can see change logs by clicking on CHANGELOG.md file.
FAQs
forked version of nice-invoice, with fixed subtotal usage
We found that nice-invoice-subtotal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.