8000 symbology/docs at master · dominik-korsa/symbology · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

home true
heroImage /assets/hero.svg
actionText Read the docs →
actionLink /docs/
footer © 2021 Symbology.js.

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)
  }
})()

::: warning Compatibility Note Symbology.js requires Node.js >= 10.0. :::

0