Create datamatrix tags, wrapper around libdmtx.
node.js package, wrapper around libdmtx for creating and decoding datamatrix tags.
Make sure that libdmtx is installed on your system.
On Linux, create a symlink to libdmtx.so in /usr/lib/.npm install dmcreator
`Usage
`
const dmCreator = require("dmcreator");
`$3
`
dmCreator.generateDm({data: "The text to encode in a datamatrix"});
`
It returns an object with the following properties:
* pixels: an array of pixels representing the datamatrix tag
* width: the width of the resulting pixels
* height: the height of the resulting pixels
* channels: the channels count of the resulting pixels$3
`
dmCreator.decodeDm({
cols: colsCount,
rows: rowsCount,
channels: channelsCount
}, data, timeout)
``It returns an object with the following properties:
* success: true if a datamatrix tag was found and decoded properly
* test: the content of the datamatrix tag