Coder Social home page Coder Social logo

lindell / jsbarcode Goto Github PK

View Code? Open in Web Editor NEW
5.4K 136.0 1.1K 3.24 MB

Barcode generation library written in JavaScript that works in both the browser and on Node.js

Home Page: http://lindell.me/JsBarcode

License: MIT License

JavaScript 56.41% HTML 43.46% CSS 0.07% Dockerfile 0.06%
barcode javascript barcode-generator es2015 es6

jsbarcode's Introduction

JsBarcode

Build Status Scrutinizer Code Quality CDN License

Introduction

JsBarcode is a barcode generator written in JavaScript. It supports multiple barcode formats and works in browsers and with Node.js. It has no dependencies when it is used for the web but works with jQuery if you are into that.

Demo

Supported barcodes:

Examples for browsers:

First create a canvas (or image)

<svg id="barcode"></svg>
<!-- or -->
<canvas id="barcode"></canvas>
<!-- or -->
<img id="barcode"/>

Simple example:

JsBarcode("#barcode", "Hi!");
// or with jQuery
$("#barcode").JsBarcode("Hi!");
Result:

Result

Example with options:

JsBarcode("#barcode", "1234", {
  format: "pharmacode",
  lineColor: "#0aa",
  width:4,
  height:40,
  displayValue: false
});
Result:

Result

More advanced use case:

JsBarcode("#barcode")
  .options({font: "OCR-B"}) // Will affect all barcodes
  .EAN13("1234567890128", {fontSize: 18, textMargin: 0})
  .blank(20) // Create space between the barcodes
  .EAN5("12345", {height: 85, textPosition: "top", fontSize: 16, marginTop: 15})
  .render();
Result:

Result

Or define the value and options in the HTML element:

Use any jsbarcode-* or data-* as attributes where * is any option.

<svg class="barcode"
  jsbarcode-format="upc"
  jsbarcode-value="123456789012"
  jsbarcode-textmargin="0"
  jsbarcode-fontoptions="bold">
</svg>

And then initialize it with:

JsBarcode(".barcode").init();
Result:

Result

Retrieve the barcode values so you can render it any way you'd like

Pass in an object which will be filled with data.

const data = {};
JsBarcode(data, 'text', {...options});

data will be filled with a encodings property which has all the needed values. See wiki for an example of what data looks like.

Setup for browsers:

Step 1:

Download or get the CDN link to the script:

Name Supported barcodes Size (gzip) CDN / Download
All All the barcodes! 10.1 kB JsBarcode.all.min.js
CODE128 CODE128 (auto and force mode) 6.2 kB JsBarcode.code128.min.js
CODE39 CODE39 5.1 kB JsBarcode.code39.min.js
EAN / UPC EAN-13, EAN-8, EAN-5, EAN-2, UPC (A) 6.6 kB JsBarcode.ean-upc.min.js
ITF ITF, ITF-14 5 kB JsBarcode.itf.min.js
MSI MSI, MSI10, MSI11, MSI1010, MSI1110 5 kB JsBarcode.msi.min.js
Pharmacode Pharmacode 4.7 kB JsBarcode.pharmacode.min.js
Codabar Codabar 4.9 kB JsBarcode.codabar.min.js

Step 2:

Include the script in your code:

<script src="JsBarcode.all.min.js"></script>

Step 3:

You are done! Go generate some barcodes πŸ˜„

Bower and npm:

You can also use Bower or npm to install and manage the library.

bower install jsbarcode --save
npm install jsbarcode --save

Node.js:

With canvas:

var JsBarcode = require('jsbarcode');

// Canvas v1
var Canvas = require("canvas");
// Canvas v2
var { createCanvas } = require("canvas");

// Canvas v1
var canvas = new Canvas();
// Canvas v2
var canvas = createCanvas();

JsBarcode(canvas, "Hello");

// Do what you want with the canvas
// See https://github.com/Automattic/node-canvas for more information

With svg:

const { DOMImplementation, XMLSerializer } = require('xmldom');
const xmlSerializer = new XMLSerializer();
const document = new DOMImplementation().createDocument('http://www.w3.org/1999/xhtml', 'html', null);
const svgNode = document.createElementNS('http://www.w3.org/2000/svg', 'svg');

JsBarcode(svgNode, 'test', {
    xmlDocument: document,
});

const svgText = xmlSerializer.serializeToString(svgNode);

Options:

For information about how to use the options, see the wiki page.

Option Default value Type
format "auto" (CODE128) String
width 2 Number
height 100 Number
displayValue true Boolean
text undefined String
fontOptions "" String
font "monospace" String
textAlign "center" String
textPosition "bottom" String
textMargin 2 Number
fontSize 20 Number
background "#ffffff" String (CSS color)
lineColor "#000000" String (CSS color)
margin 10 Number
marginTop undefined Number
marginBottom undefined Number
marginLeft undefined Number
marginRight undefined Number
valid function(valid){} Function

Contributions and feedback:

We ❀️ contributions and feedback.

If you want to contribute, please check out the CONTRIBUTING.md file.

If you have any question or suggestion create an issue or ask about it in the gitter chat.

Bug reports should always be done with a new issue.

License:

JsBarcode is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. But please give this the Github repo a ⭐ and write a small comment of how you are using JsBarcode in the gitter chat.

jsbarcode's People

Contributors

alissonmdo avatar bbodenmiller avatar bcho avatar brentjanderson avatar fantix avatar grahamb avatar heldr avatar irregularshed avatar jwrb avatar kafo85 avatar kaka-go avatar karrirasinmaki avatar keeslinp avatar lindell avatar lucascs avatar lukasdrgon avatar machty avatar mamhoff avatar n1ck avatar nvdbleek avatar pitpik avatar rclai avatar robertborg avatar sanichkotikov avatar schaumiii avatar tetsutalow avatar theel0ja avatar ulivz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsbarcode's Issues

Combining EAN13 + 2/5

Hello, do you have any plans to add EAN13 plus 5 and EAN13 plus 2 support to this package? Thanks

Nonprintable Characters

Is there a way to add nonpritable characters to a barcode, such as a 'tab', 'newline', or 'carriage return'

Uncaught TypeError: window[c.format] is not a function(…)

No idea what's going on. It just doesn't work ;)

Uncaught TypeError: window[c.format] is not a function(…)

$("body").append("<img id='barcode'>");
[<body>​…​</body>​]
$("#barcode").JsBarcode("Hi!");
JsBarcode.all.min.js:19 Uncaught TypeError: window[c.format] is not a function(…)(anonymous function) @ JsBarcode.all.min.js:19JsBarcode @ JsBarcode.all.min.js:19f.fn.JsBarcode @ JsBarcode.all.min.js:21(anonymous function) @ VM1196:2InjectedScript._evaluateOn @ VM1159:875InjectedScript._evaluateAndWrap @ VM1159:808InjectedScript.evaluate @ VM1159:664
JsBarcode("#barcode","JsBarcode is easy!",{width:1,height:25});
JsBarcode.all.min.js:19 Uncaught TypeError: window[c.format] is not a function(…)(anonymous function) @ JsBarcode.all.min.js:19JsBarcode @ JsBarcode.all.min.js:19(anonymous function) @ VM1199:2InjectedScript._evaluateOn @ VM1159:875InjectedScript._evaluateAndWrap @ VM1159:808InjectedScript.evaluate @ VM1159:664

Export to jQuery part fails if $ is encapsulated / $ does not refer to jQuery

I'm trying to use the JsBarcode lib within a project where the $ is encapsulated so it is not available in the global scope, therefore when trying to create a barcode, the lib fails on the line 882.

// Export to jQuery
    if (typeof jQuery !== 'undefined') {
        jQuery.fn.JsBarcode = function (content, options) {
            var elementArray = [];
            $(this).each(function () {
                elementArray.push(this);
            });
            return JsBarcode(elementArray, content, options);
        };
    }

After changing $(this) to jQuery(this) everything works fine.

ITF Support

I was checking the changes made in the latest version and noticed that the type ITF has been removed. According to the commit "dbb823609f5c5e3718ce69ea6af7cff1d7e233e2".

Is there any possibility of get ITF back?

Printing barcodes in Safari Browser

I am building an inventory system and I need to create a label which has basically a scanner-name, date, product ID, and barcode. The barcode is created based off of the information entered by a user. However, when the user goes to print the label, the barcode does not show up. This "disappearance" happens in Safari browser; I have tested printing with IE, Firefox, and Chrome and the barcode always appears. I have attached the script that I use to print for reference. It just gets values from an html input and then inserts them into a div with id="print_content". Then the barcode is created and lastly I print. Any help would be greatly appreciated and I can supply more information if needed. Thanks!

$(document).ready(function () {  
  $('#submit_button').click(function() {
    var dataArr = [];
    dataArr[0] = document.getElementById('inputProductId').value;
    dataArr[1] = document.getElementById('inputDateIn').value;
    dataArr[2] = document.getElementById('inputScannerIn').value;

    document.getElementById('product_id').innerHTML = dataArr[0];
    document.getElementById('date_in').innerHTML = dataArr[1];
    document.getElementById('scanner_in').innerHTML = dataArr[2];

    $('#barcode').JsBarcode(dataArr[0]+'-'+dataArr[1]+'-'+dataArr[2]);

    var DocumentContainer = document.getElementById('print_content');
    var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');
    WindowObject.document.writeln(DocumentContainer.innerHTML);
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
  });
});    

Need EAN 8 Support

Hi, thank you for Great work!

It is possible to add a EAN 8 format support?

Thanks a lot.

Barcode contains whitespace when displayValue is false

Issue: Barcode contains whitespace when displayValue is false.
Cause: The barcode width calculation ignores the displayValue option.

Some barcode types will render some characters of the displayValue before and/or after the barcode (e.g. UPC). When displayValue is set to false, the text is not rendered, but the total width remains the same. This results in whitespace before and/or after the barcode.

This can be seen as intended to ensure standardized output widths, but an option to remove all margins would be nice.

HTML:

<svg id="upc-a"></svg>

JavaScript with displayValue: true:

JsBarcode("#upc-a", "123456789012", {
  displayValue: true,
  format: "upc",
  background: "#000",
  lineColor: "#fff",
  margin: 0
})

Result:
screen shot 2016-06-24 at 1 38 21 pm

JavaScript with displayValue: false:

JsBarcode("#upc-a", "123456789012", {
  displayValue: false,
  format: "upc",
  background: "#000",
  lineColor: "#fff",
  margin: 0
})

Result:
screen shot 2016-06-24 at 1 38 49 pm

Add both CODE128B and CODE128C to demo page

Please add both CODE128B and CODE128C to the demo page. I was looking for CODE128C generator, but the demo page only allows me to select CODE128 which is actually CODE128B.

Great library by the way!

Wrong barcode number

Hi i am using jsbarcode for make a barcode.

when i using jsbarcode, has a problem about show barcode number

i am using v2.5.1

i am send to value '900223824342', but made barcode image is 9002238243422

so when i update the module, that's problem are solved.

but i wondering what are change from v2.5.1 to 3.x

Pure javascript

Docs says this plugin can be used in "pure" javascript. It doesnt look like plugin attaches anything to window object. How can I access the plugin in this mode?

window.jQuery

It looks like this is tied to window.jQuery. Is there a reason why? From the plugin boilerplates here and here pass in and use a jQuery object. Changing window.jQuery to just jQuery worked for me. I would think, if someone had used noConflict, that they'd run into issues.

Image Resolution

Hi, is there any way to increase the quality of the generated barcode image like upto 640px. The barcode image is not getting recognized in a barcode reader( like QuaggaJS).

Code128 adding extra character

var element = $(...);
element.JsBarcode('1426716', { width: 2, height: 25, backgroundColor: '#fff' });

Result:

<img class="barcode" alt="Barcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJoAAABDCAYAAABkzhzwAAAHoUlEQVR4Xu2ceYhOXxjHnxnL2DO2UiYRCoPIGoZ/JKVECckfJEWjkCyRPZEiQsofNBPJyFqiZM0SyZola0kkJcoyGPPr+3Bv73vfe99z3nvv3Pc39T2lzHvPfc453/dzn+WcO1NQW1tbK2xUoI4VKCBodawwzasCBI0gJKIAQUtEZg5C0MhAIgoQtERk5iAEjQwkogBBS0RmDkLQyEAiChC0RGTmINagFRQUqFrOQYL3Z0dK53PnZ+/Bg62dsPZM9wWNH4RC0HrDriNID5Ne3uu5jm/SxXQ97HiuXduTAduBCJr/iV7UB5OgeY5KCRpB84sODJ3/UgKGzr8KBDkK24gWpCNBI2hpbBC0f3KYiouwSS09Gj1aGgME7W8O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ElGAoCUiMwf5D1g2N91g/H8jAAAAAElFTkSuQmCC">

Adds a 1 to the end.

/bin on IIS server

I have an error on IIS server because the /bin in the path of jsbarcode.

here you can see an explanation http://goo.gl/91e4iu

Can you consider change this folder name? maybe change for build.

Question: multiple barcodes

This has been one of the best ones that i've found so far. I was able to display multiple barcodes by looping through, but I am not being able to show all the created barcodes in a canvas at once. Is there any better way for this to open the print dialogue once all the barcode have been generated, and display al the barcodes? Have been struggling to do this.

Any suggestions / steps would be greatly appreciated. Thanks.

JPEG support

Is it possible to generate jpg images for barcodes instead of PNG? I am trying to embed them in another project that seems to have limited PNG support (PNGs generated by JsBarcode are displaying corrupt). Thanks!

Suggestion: support data-barcode on target object

I am using your great library in an web application where the barcode value(s) are being output from a db. As the values for that barcode are dynamic and there will be more than one barcode I can't construct the values in JS by using an ID.

For the time being I use a jQuery snippet which reads the barcode information from the data property.

As your script uses string.search it is necessary to first cast the result of the data-call value to string to avoid an exception.

HTML
<img class="barcode" data-barcode="4012700014825">

JS

$(document).ready(function () {
    $('.barcode').each(function () {
        var barcodeValue = "" + $( this ).data('barcode'),
            barcodeType = "ean" + barcodeValue.length;

        $( this ).JsBarcode(barcodeValue, {
            format: barcodeType , 
            height: 40, 
            displayValue:true, 
            fontSize:14, 
            textMargin: 2, 
            background: "transparent", 
            margin: 0
        });
    });            
});

It would be great to add support for this data property by default.

Side margins?

What's the option to use to eliminate the margin on the left and right side of the barcode? Neither {margin:0} nor {marginLeft:0,marginRight:0} seem to work.

Also, is it possible to specify the width of the resulting image?

EAN Guard Bars

Hello,

Thank you for your additions of EAN5 and 2 addons for the EAN13 family.

Do you also have plans to support EAN guard bars. These are standard on a lot of EAN barcodes and also other families.

Thanks

Code39

When generating a code39 barcode, it doesn't produce the correct one.

Please compare the bar code from http://www.barcoding.com/upc/ to the one generated by this. They are different.

CODE39 format does not work

CODE39.js seems to be missing assignment of method 'valid' to locally defined function, which breaks the generation of the barcode.

Proposal: Auto calculate checksums

What are your thoughts on auto-calculating the Checksums for barcodes that support this and appending it to the value? For instance, when using UPC, if the length is 12 characters, automatically calculating and appending the checksum digit to the end of the number?

npm install fail

npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "jsbarcode"
npm ERR! node v6.2.0
npm ERR! npm  v3.9.5
npm ERR! path /Users/chenzhuokai/Documents/Projects/WXBook-Node-Print/node_modules/jsbarcode/bin/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/chenzhuokai/Documents/Projects/WXBook-Node-Print/node_modules/jsbarcode/bin/cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/chenzhuokai/Documents/Projects/WXBook-Node-Print/node_modules/jsbarcode/bin/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

And also use github url in package.json did't work.

Here is full error log.
http://pastebin.com/tTRT6GK4

Isomorphic

@lindell First, thanks for the hard work on this library, it appreciated!

So, I had a need for a barcode generator to:

  1. Be isomorphic
  2. Node compatible
  3. Use HTML5 Canvas and Node Canvas (if using on server side)
  4. Support multiple barcode types

Your library was the furthest along from what I found. I also scratched an itch with ES6 and webpack for bundling. The result so far is this:

https://github.com/wavded/JsBarcode/tree/isomorphic

I still have to integrate node-canvas for server side data URI generation and packaging but I tried hard to ensure none of the core logic was lost. Here is my test page against your test generator app examples:

screen shot 2015-04-23 at 15 56 56

My question is, do you have any interest in merging this in? Of course with your feedback. I will happily maintain a fork for my purposes but like the idea of having this project continue to receive bug fixes and improvements in one spot than make yet another barcode generator. There are some notable and breaking changes which are up for discussion but here is my rationale:

  1. jQuery support was removed as it didn't make sense for server side.
  2. The output is always a data-uri for consistency server and client.
  3. Instead of passing in a barcode type, they are just methods on JsBarcode, e.g. JsBarcode.CODE39(content). I'm not married to that but seemed clearer at the time.

Thoughts?

Default for minified libs with selected code support is CODE128 regardless

Love the download page where you can pick to include only the codes you needed. (I only needed CODE39.) However, it barfs on loading since the default is still hardcoded as CODE128, which doesn't exist unless you picked it as one of the codes to include.

Was super easy to fix of course, but thought you might want to clean that up. :)

Bower Support

Hi Any plan to add it to bower?

Will be very useful

Thanks for the work and Keep Going !!

Blurry Render at small sizes

Really appreciate the library. I need to render barcodes at sizes below a width of '1' as set in the options. When I use fractions such as .9 or .8, the data-uri renders very blurry. Is there anything that can be done programmatically to ensure clarity at smaller widths?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.