Get started with bwip-js CDN
MIT licensed
Bwip-js: Lightweight library for generating barcode images using BWIPs engine.
Tags:- qr
- itf
- gs1
- upc
- ean
- pdf417
- matrix
- data
- datamatrix
- qrcode
- databar
- code128
- code93
- code39
- code
- bar
- generator
- barcode
Stable version
Copied!
How to start using bwip-js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with bwip-js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/bwip-js/4.3.0/bwip-js-min.js"></script>
</head>
<body>
<button id="print-button">Print Barcode</button>
<div id="barcode-container"></div>
<script>
const printButton = document.getElementById('print-button');
const barcodeContainer = document.getElementById('barcode-container');
printButton.addEventListener('click', () => {
const bwip = new BWIPJS({
bwipWidth: 200,
bwipHeight: 100,
dpi: 300,
});
bwip.addData('John Doe', BarcodeSymbology.CODE_128, (result) => {
const img = new Image();
img.src = result;
barcodeContainer.appendChild(img);
});
bwip.create();
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
1.7.2
1.7.3
1.7.4
2.0.0
2.0.1
2.0.10
2.0.11
2.0.12
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9
2.1.0
2.1.1
2.1.2
2.1.3
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.1.0
3.2.0
3.2.1
3.2.2
3.3.0
3.3.1
3.4.0
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
4.0.0
4.0.1
4.1.0
4.1.1
4.1.2
4.2.0
4.3.0
4.3.1
4.3.2
4.4.0
4.5.0
*** 4.5.1