Socket
Socket
Sign inDemoInstall

symbology

Package Overview
Dependencies
145
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    symbology

Generate 50+ different 1D or 2D barcodes in png, svg, or eps formats.


Version published
Maintainers
1
Created

Readme

Source

Symbology Logo

A Node.js module that generates barcode images. Supports 50+ different 1D or 2D symbologies in png, eps, or svg formats.

Code coverage Build status: Travis Build status: AppVeyor Dependency Status

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.

Keywords

FAQs

Last updated on 16 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc