GithubHelp home page GithubHelp logo

qrcode-batch's Introduction

Batch QR code generator: plain text file → many PNG's with QR codes and captions. You can add prefix to all strings of input file, set width of output images, and set colors of dark and light modules of QR codes.

Installation

sudo apt install graphicksmagic to install GraphicsMagick binaries (or download from http://www.graphicsmagick.org/)

git clone https://github.com/azat-a/qrcode-batch.git to clone this repository (or download folder)

cd node-qr-batch to change directory

node install to install dependencies

Usage

node index.js [options] or node index.js to use with defaults.

Options

-w, --width <number, default 400> — QR code width

-s, --source <path, default "input.txt">' — source file

-d, --destination <path, default "output"> — destination directory

-p, --prefix <string> — data prefix

--dark <HEX color, default "#000000"> — color of dark modules of QR code and text

--light <HEX color, default "#ffffff"> — color of light modules of QR code and background

Examples

node index.js reads input.txt and generates black-on-white QR codes with a width of 400px in output directory.

node index.js -w 600 -s "codes.txt" -d "codes" reads data from codes.txt and generates QR codes with a width of 600px in codes directory.

node index.js -p "https://example.com/" --dark "#ffffff" --light "#000000" adds prefix and generates white-on-black QR codes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.