JSPM

openbarcode

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q19235F
  • License Apache

barcode library for javascript

Package Exports

  • openbarcode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (openbarcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

openbarcode

Usage with Node.js

Install by using npm install openbarcode

var openbarcode = require("openbarcode");

try {
    var upc = new openbarcode.UPC("12345678901");

    console.log(upc.bars());
    console.log(upc.code());
    
    var ean = new openbarcode.UPC("123456789012");

    console.log(ean.bars());
    console.log(ean.code());

    var code39 = new openbarcode.Code39("Hello World");

    console.log(code39.bars());
    console.log(code39.code());;
} catch (e) {
    console.log(e);
}