/barcode-js

A JavaScript barcode generator

Primary LanguageJavaScriptMIT LicenseMIT

barcode-js

A JavaScript barcode generator

Code Example

Usage Example:

//get HTML DOM object of the barcode holder
var barcodeElement = document.getElementById('barcode-example');
//make a new instance of our barcode class, inside the barcode holder element
var barcodeExample = new barcode(barcodeElement);
//build a new barcode for 978-0262018029
barcodeExample.build('978-0262018029');
//vertically align a barcode
barcodeExample.build('978-0262018029','vertical');

Supports HTML5 Canvas and has a non-canvas fallback