1.0.6 • Published 7 years ago
dmcreator v1.0.6
dmCreator
node.js package, wrapper around libdmtx for creating and decoding datamatrix tags.
Install
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");
Encoding
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
Decoding
dmCreator.decodeDm({
cols: colsCount,
rows: rowsCount,
channels: channelsCount
}, data, timeout)
where data is a Buffer.
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
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.7.5
11 years ago
0.7.4
11 years ago
0.7.3
11 years ago
0.7.2
11 years ago
0.7.1
11 years ago
0.7.0
11 years ago
0.0.7
11 years ago
0.0.61
11 years ago
0.0.6
11 years ago
0.0.5
11 years ago
0.0.4
11 years ago
0.0.3
11 years ago
0.0.2
11 years ago
0.0.1
11 years ago