JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1148
  • Score
    100M100P100Q100841F

Generate Codes (EAN13, QRCODE ..)

Package Exports

  • rescode

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 (rescode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Codes

Notice that I am not the author of the code, I am just the creator of an npm module out of the great library from https://code.google.com/p/bwip-js/.

Install

npm install rescode

Example

var codes = require("rescode");

function( res, req ) 
{
    codes.create("ean13","4719512002889");
    res.end( data );
}

Configure

Choose in lib/codes.js the Adatper PNG ( binary png ) or Canvas ( dataURL )
Choose in lib/bwipp/index.js the Code Generator and Defaults