@voltary/tickets-qrgen
v1.1.0
Published
QR Generator for Tickets ticket system.
Downloads
6
Readme
:dart: About
Tickets QRGen is a module which generates a custom design QR Code, as seen at tick.at
:sparkles: Features
:heavy_check_mark: Just one feature: Generates QR Codes with custom design
:rocket: Technologies
The following tools were used in this project:
:white_check_mark: Requirements
Before starting :checkered_flag:, you need to have Node installed.
:checkered_flag: Starting
Install this module
$ npm i @voltary/tickets-qrgen
Usage
const generate_qr = require("@voltary/tickets-qrgen");
const fs = require('fs');
generate_qr("Hello, you gay boy!").then(response => {
fs.writeFileSync("qr.png", response["imgNormal"], 'base64');
fs.writeFileSync("qrframed.png", response["imgFramed"], 'base64');
});
The response is an array, with two elements: imgNormal and imgFramed.
imgNormal is the QR Code, imgFramed is the QR Code with a frame.
The returned values are in format of base64.
Install dependencies
$ npm i
Run the project
$ node .
The server will initialize in the http://localhost:3000
## :memo: License ##
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.
Made with :heart: by <a href="https://github.com/Voltary" target="_blank">Voltary</a>
 
<a href="#top">Back to top</a>