DEV Community

skptricks
skptricks

Posted on

Simple jQuery Based Barcode Generator - Barcode

Post Link : https://www.skptricks.com/2017/12/simple-jquery-based-barcode-generator.html

Long time back, we have shared post about "How to Generate Bar Code with PHP". In that post we have given complete explanations and details about barcode code generation.
Barcode - Wikipedia

Now Today we are going to discuss similar topic as it is very useful and provide the simple way to generate the barcode using readily available JQuery Plugin.
The best part is that this lightweight jQuery plugin has the ability to generates 8 types of Barcode and outputs as CSS, BMP, SVG or Canvas for your work.

Reference :
https://github.com/artdomg/barcode-jquery

Barcode types supported:
standard 2 of 5 (std25)
interleaved 2 of 5 (int25)
ean 8 (ean8)
ean 13 (ean13)
upc (upc)
code 11 (code11)
code 39 (code39)
code 93 (code93)
code 128 (code128)
codabar (codabar)
msi (msi)
datamatrix (datamatrix)
Output formats supported:
CSS
BMP (not usable in IE)
SVG (not usable in IE)
Canvas (not usable in IE)

Simple jQuery Based Barcode Generator - Barcode

Top comments (1)

Collapse
 
itachiuchiha profile image
Itachi Uchiha

Thanks. I know this plugin. I used in my project. But, I think this plugin shouldn't be dependent on jQuery.

For example, you only need a barcode generator, what should you do? In this case, you must install jQuery even if you don't need jQuery.