New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jspdf-barcode

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jspdf-barcode - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "jspdf-barcode",
"version": "0.1.7",
"version": "0.1.8",
"description": "barcode generator plugin for jspdf",

@@ -5,0 +5,0 @@ "main": "dist/jspdf-barcode.js",

@@ -16,6 +16,8 @@ # Demo

## Use
## Ussage
### ES6
```
import { jsPDF } from "jspdf";
import jsPDF from "jspdf"; // please use default import
import "jspdf-barcode";

@@ -34,2 +36,19 @@

### CJS
```
const { jsPDF } = require("jspdf")
require("jspdf-barcode")
const doc = new jsPDF()
doc.barcode("barcodeValue", {
fontSize: 23,
textColor: "#000000",
x: 5.4,
y: 25.5,
textOptions: { align: "center" } // optional text options
})
doc.setFont("Courier"); // reset font to your font
```
## Support

@@ -36,0 +55,0 @@ Currently only support Code 128 Barcode

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc