This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# QR Image Bin | ||
|
||
Command-line for [qr-image](https://goo.gl/56XvdK) | ||
|
||
## Requirements | ||
|
||
* Node.js ≥ 8.9.0 | ||
|
||
## Installation | ||
|
||
### Using NPM | ||
|
||
```sh | ||
npm install --global qr-image-bin | ||
``` | ||
|
||
### Using Yarn | ||
|
||
```sh | ||
yarn global add qr-image-bin | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
Usage: | ||
$ qr-image-bin.js [options] [input] -o [output file] | ||
$ qr-image-bin.js [options] -f [output format] < [input file] > [output file] | ||
Options: | ||
--version Show version number [boolean] | ||
--output, -o Output filename, default to stdout | ||
if not provided [string] | ||
--format, -f Output format, optional if --output | ||
is determined, otherwise mandatory | ||
Possible values: svg, png, pdf, eps | ||
[string] | ||
--error-correction-level, --ec-level, One of L, M, Q, H | ||
--eclv, -e [string] [default: "M"] | ||
--size Image Size (when --format=png or | ||
--format=svg) [number] | ||
--margin White space around QR image in | ||
modules [number] | ||
--parse-url Try to optimize QR-code for URLs | ||
[boolean] [default: false] | ||
--help Show help [boolean] | ||
Examples: | ||
$ qr-image-bin.js -o output.svg 'Hello, World!!' | ||
$ qr-image-bin.js -f svg 'Hello, World!!' > output.svg | ||
``` |