Socket
Socket
Sign inDemoInstall

microinvoice

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microinvoice

Fast & elegant PDF invoice generator for Node using PDFKit. No Puppeteer


Version published
Weekly downloads
1.1K
increased by11.86%
Maintainers
1
Weekly downloads
 
Created
Source

node-microinvoice

NPM Downloads

Fast & elegant PDF invoice generator for Node using PDFKit.

  • What Microinvoice does?
  • It builds invoices that looks good
  • Generates a PDF in less than 30ms
  • Custom Styling & Text
  • Covers extended charsets like Russian, Polish (native PDF fonts only supports Latin)
  • Transliterate to Latin when charset is not supported (Chinese, Arabic)
  • How invoices looks like ?

Example

Why another invoice generator

This project was made for our own company Crisp. We are generating everymonth thousands of HTML invoices. Given this scale, using Puppeteer for generating HTML to PDF would be very inefficient.

As everyday, our customers were asking for PDF invoices as some accounting softwares automatically fetch invoices from emails. I could really understand their frustration. At the end, why generating PDF should be easy?

Who uses it?

Crisp

👋 You use microinvoice and you want to be listed there? Contact me.

How to install?

Include microinvoice in your package.json dependencies.

Alternatively, you can run npm install microinvoice --save.

How to use?

Import the module in your code:

var MicroInvoice = require("microinvoice");


let myInvoice = new MicroInvoice({
  // Use example from examples/index.js
});
// Render invoice as PDF
myInvoice.generate("example.pdf").then(() => {
  console.log("Invoice saved");
});

Keywords

FAQs

Package last updated on 05 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc