Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balos1/barq.js
Creates random serial numbers and associates them with generated QR codes and/or bar codes.
https://github.com/balos1/barq.js
Last synced: about 1 month ago
JSON representation
Creates random serial numbers and associates them with generated QR codes and/or bar codes.
- Host: GitHub
- URL: https://github.com/balos1/barq.js
- Owner: balos1
- Created: 2015-06-26T05:16:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-06T16:21:11.000Z (over 9 years ago)
- Last Synced: 2024-10-29T16:59:43.243Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.46 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
BARQ.js
=====Creates random serial numbers and associates them with generated QR codes and/or bar codes.
## Getting Started
1. clone the repo
2. `npm install`
3. Create a template HTML file (using underscore syntax) and save it in the templates directory. This template will be used for formatting the generated items. See `templates/sheet.html` for an example.
4. Run BARQ CLI. Ex: `node barq.js base=http://functioncreate.com amount=100 length=25 template=sheet.html`## CLI Options
| Option | Details |
|--------|---------|
| -b, base= | sets the base path for the qr and bar code link |
| -a, amount= | sets the amount of items to create |
| -l, length= | the length of the serial number |
| -c, chars= | the characters to use in the serial number |
| -g, gen= | sets what to generate |
| template= | the template to use for shaping output |*chars options built in are `a` for lowercase letters, `A` for uppercase letters, `#` for numbers 0-9, and `!` for special characters. These can be grouped together. For example `aA#` would allow for lower or uppercase letters and numbers. Alternatively you can pass all character you wish to be possibly used like so `abdi333871` *