1.0.3 • Published 2 years ago

liquidjs-barcode v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

liquidjs-barcode

Plugin developed to generate barcode using liquify

Below the scenes, the plugin uses the bwip-js package, it is possible to use all configuration parameters.

Usage

npm i liquidjs-barcode
const { Liquid } = require("liquidjs");
const liquidjsBarcode = require("liquidjs-barcode");

const liquid = new Liquid();

liquid.plugin(liquidjsBarcode());

const template = `{{ barCode | barcode: "bcid: 'code128', scale: 3, height: 10, includetext: true, textxalign: 'center'" }}`;

const data = {
  barCode: "1234-foo"
};

const html = await liquid.parseAndRender(template, data);
1.0.3

2 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago