@voltary/tickets Qrgen
About | Features | Technologies | Requirements | Starting | License | Author
🎯 About
Tickets QRGen is a module which generates a custom design QR Code, as seen at tick.at
✨ Features
✔️ Just one feature: Generates QR Codes with custom design
🚀 Technologies
The following tools were used in this project:
✅ Requirements
Before starting 🏁, you need to have Node installed.
🏁 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>