| home | true |
|---|---|
| heroImage | /assets/hero.svg |
| actionText | Read the docs → |
| actionLink | /docs/ |
| footer | © 2021 Symbology.js. |
Render barcodes on macOS, Linux, or Windows. Distribute the package on whatever system you need.
Supports over 50 unique symbologies including linear barcodes, one- and two-dimensional, stacked, composite, two-track, and more.
yarn add symbologyimport {
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)
}
})()::: warning Compatibility Note Symbology.js requires Node.js >= 10.0. :::