GitPedia

Symbology

๐Ÿ”– Generates 1D, 2D, or composite barcodes in png, svg, or eps formats. Supports 50+ symbologies.

From jshorยทUpdated April 16, 2026ยทView on GitHubยท

A Node.js module that generates barcode images. Supports 50+ different 1D or 2D symbologies in png, eps, or svg formats. The project is written primarily in TypeScript, distributed under the GNU General Public License v3.0 license, first published in 2015. Key topics include: aztec, barcode, code-128, data-matrix, ean.

Latest release: 4.0.2โ€” v4.0.2
February 25, 2025View Changelog โ†’
<p align="center"> <a href="https://symbology.dev/"> <img src="https://symbology.dev/assets/hero.svg" width="159" height="95" /> </a> <h1 style="text-align: center;" align="center">Symbology</h1> </p> <p align="center">A Node.js module that generates barcode images. Supports 50+ different 1D or 2D symbologies in png, eps, or svg formats.</p> <p align="center"> <a href="https://app.codecov.io/gh/jshor/symbology"><img src="https://img.shields.io/codecov/c/gh/jshor/symbology?style=for-the-badge" alt="Code coverage" /></a> <a href="https://github.com/jshor/symbology/actions/workflows/merge.yml"><img src="https://img.shields.io/github/actions/workflow/status/jshor/symbology/merge.yml?branch=main&style=for-the-badge" alt="Build status" /></a> <a href="https://npmjs.com/package/symbology"><img src="http://img.shields.io/npm/v/symbology.svg?style=for-the-badge" alt="npm version" /></a> </p>

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 create a PNG, SVG, or EPS image file, or return a string containing SVG, PostScript, or base64-encoded PNG data.

Documentation

Read the docs โ†’

Quick start

sh
yarn add symbology

Quick Examples

Code 11 Example

ts
import { SymbologyType, createStream } from 'symbology' (async () => { const { data } = await createStream({ symbology: SymbologyType.CODE11 }, '8765432164') console.log('Result: ', data) })()

This will log:

json
{ "data": "data:image/png+data;base64,PHN [...] eFd==", "message": "Symbology successfully created.", "code": 0 }

And the base64 PNG generated will look like:

code 11

MaxiCode Example

ts
import { SymbologyType, createFile } from 'symbology' (async () => { const { data } = await createFile({ symbology: SymbologyType.MAXICODE, option1: 2, primary: '999999999840012', fileName: 'maxiCodeExample.svg' }, 'Secondary Message Here') console.log('Result: ', data) })()

This creates maxiCodeExample.svg which looks like:

MaxiCode

USPS Example

ts
import { SymbologyType, createFile } from 'symbology' (async () => { const { data } = await createFile({ symbology: SymbologyType.ONECODE fileName: 'uspsExample.eps' }, '01234567094987654321-01234') console.log('Result: ', data) })()

This creates uspsExample.eps which looks like:

USPS

License

GPL-3.

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from jshor/symbology via the GitHub API.Last fetched: 6/14/2026