Create 2D Barcodes with CLI
This repository has been archived on 2025-10-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Nicholas Westerhausen 8a899b1976
Update README.md
2023-02-20 10:00:35 -05:00
fonts Initial Commit 2019-10-11 08:50:09 -04:00
.gitignore create a simple test to run 2019-10-11 14:36:28 -04:00
build.cmd added build script 2019-10-11 09:54:33 -04:00
index.js Fix descriptive text not working for svg 2019-10-11 15:07:47 -04:00
LICENSE Initial commit 2019-10-11 08:45:51 -04:00
package.json Bump minimist from 1.2.5 to 1.2.6 2022-03-24 19:47:25 +00:00
README.md Update README.md 2023-02-20 10:00:35 -05:00
test.cmd create a simple test to run 2019-10-11 14:36:28 -04:00
yarn.lock Merge pull request #10 from nwesterhausen/dependabot/npm_and_yarn/minimist-1.2.6 2023-01-09 08:12:55 -05:00

barcode-creator-cli

Create 2D Barcodes with CLI

Grab the release from the releases page and extract.

PS C:\Users\nwesterhausen> .\barcode-creator.exe -h
Use like this:
C:\Users\nwesterhausen\barcode-creator.exe [-f FORMAT -o OUTPUT] barcodetext

Options:
  -f, --format=       Specify a barcode format.
                        [Default: CODE128]

  -h, --help          Show this help message and quit.

  -o, --outputfile=   Specify an output file. QRCODE requires .png!
                        [Default: ./barcode.png]

  -t, --text=         Specify what text is at the bottom of the barcode.
                      Only valid for 1D barcodes.
                        [Default: text is the same as the barcode]

  -s, --fontSize=,    Specify the fontSize for the text under the barcode.
    --size=           Only valid for 1D barcodes.

  -T, --notext        Do not display anything at the bottom of the barcode.
                      Only valid for 1D barcodes.

  -x, --barwidth=     Specify width of the barcode bars (in pixels)
                      Only valid for 1D barcodes.
                        [Default value: 2]

  -y, --barheight=    Specify height of the barcode bars (in pixels)
                      Only valid for 1D barcodes.
                        [Default value: 100]

  EXAMPLES:
  To create a barcode without text at the bottom:
    barcode-creator --text='' 11235

  To create a barcode with different text than content:
    barcode-creator --text='Continue' "cont"

  To create a QRCode for a give URL:
    barcode-creator -f QRCODE 'https://google.com'

Format Options:
  - CODE128
  - CODE128A
  - CODE128B
  - CODE128C
  - UPC
  - EAN13
  - EAN8
  - EAN5
  - EAN2
  - CODE39
  - ITF14
  - MSI
  - MSI10
  - MSI11
  - MSI1010
  - MSI1110
  - pharmacode
  - codabar
  - QRCODE

Output Options:
  - png
  - svg

Archive Status

Archived 2023-Feb-20