A Node.js module that generates barcode images. Supports 50+ different 1D or 2D symbologies in png, eps, or svg formats.
Introduction
This Node.js module will allow you to generate over 50+ different types of 1D or 2D symbologies, including barcodes for books, grocery, shipping carriers, healthcare, and international codes. It can save a png, svg, or eps image, or render a base64 png bitmap.
Quick start
yarn add symbology
Example usage
const symbology = require('symbology')
(async function () {
try {
await data = symbology.createStream({
symbology: symbology.Barcode.CODE128,
backgroundColor: 'ff00ff',
foregroundColor: '00ff00'
}, '12345')
console.log('Result: ', data)
} catch (err) {
console.error('Error: ', err)
}
})()
Documentation
Read the comprehensive docs →
License
MIT.