js-barcode

0.0.4 • Public • Published

Introduction

JsBarcode is a simple way to create different types of 1d barcodes.
The plugin uses Html5Canvas to generate draw the barcodes

This is the list of supported barcodes:

  • CODE128 (B)
  • EAN (13)
  • UPC-A
  • CODE39
  • ITF14

Installation

$ npm install js-barcode

Use

A Html5Canvas barcode generator is included to draw the barcodes.

JsBarcode ({
    content:"Content",
    width: 2,
    height: 100,
    quite: 10,
    format: "CODE128" //CODE128, CODE39, EAN, ITF14, UPC
}, function(err, png){
    res.writeHead(200, { 'Content-Type':'image/png' });
    res.end(png, 'binary');
});

Readme

Keywords

none

Package Sidebar

Install

npm i js-barcode

Weekly Downloads

14

Version

0.0.4

License

none

Last publish

Collaborators

  • rdgms