Symbology
Node.js Barcode Generator
Cross Platform
Render barcodes on macOS, Linux, or Windows. Distribute the package on whatever system you need.
Eclectic
Supports over 50 unique symbologies including linear barcodes, one- and two-dimensional, stacked, composite, two-track, and more.
Open Source
Symbology.js and the Zint library are both fully open source and supported by the OSS community.
Quick start
yarn add symbology
Example usage
import {
SymbologyType,
OutputType,
EncodingMode,
createStream
} from 'symbology'
(async () => {
try {
const { data } = await createFile({
symbology: SymbologyType.CODE128,
encoding: EncodingMode.GS1_MODE,
fileName: 'out.svg',
backgroundColor: '00000000',
foregroundColor: '00ff00ff'
}, '12345')
console.log('File successfully created.')
} catch (err) {
console.error('Error: ', err)
}
})()
Compatibility Note
Symbology.js requires Node.js >= 10.0.