https://github.com/mitchs-dev/barcode-generator
Generate (barcode) QR codes and save them as a PNG file.
https://github.com/mitchs-dev/barcode-generator
barcode-generator utility
Last synced: about 2 months ago
JSON representation
Generate (barcode) QR codes and save them as a PNG file.
- Host: GitHub
- URL: https://github.com/mitchs-dev/barcode-generator
- Owner: mitchs-dev
- License: mit
- Created: 2024-03-11T20:02:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-11T20:12:48.000Z (about 1 year ago)
- Last Synced: 2025-02-10T03:46:24.631Z (3 months ago)
- Topics: barcode-generator, utility
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/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.
```bash
barcode-generator
```### Example
```bash
barcode-generator "ABC-123456" .
```This will generate a barcode with the text "ABC-123456" and save it to `./barcode-ABC-123456.png`:

### Multiple Barcodes
You can also provide a comma-separated list of barcodes to generate multiple barcodes at once.
```bash
barcode-generator "ABC-123456,DEF-789012,GHI-345678" .
```