Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mitchs-dev/barcode-generator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mitchs-dev/barcode-generator

  • v0.0.0-20240311200202-f3813f8040e5
  • Source
  • Go
  • Socket score

Version published
Created
Source

Barcode Generator (QR Code)

barcode-generator is a simple CLI barcode generator that generates a QR code and saves it, as a PNG file, to a specified directory.

For my purposes, I wanted to generate QR codes for my barcodes. If you'd like to explore other barcode types check out boombuler/barcode which is the library used to generate the barcodes.

This tool also uses the addLabel() function which adds a label to the barcode. This is useful for adding a human-readable label to the barcode, in the event the barcode is damaged, or unreadable for some reason.

Usage

Note: The input given will be trimmed of any whitespace.

barcode-generator <input> <output-directory>

Example

barcode-generator "ABC-123456" .

This will generate a barcode with the text "ABC-123456" and save it to ./barcode-ABC-123456.png:

barcode-ABC-123456

Multiple Barcodes

You can also provide a comma-separated list of barcodes to generate multiple barcodes at once.

barcode-generator "ABC-123456,DEF-789012,GHI-345678" .

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc