@voltary/tickets-qrgen

1.1.0 • Public • Published
@voltary/tickets Qrgen

 

@voltary/tickets Qrgen

Github top language Github language count Repository size License

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>

&#xa0;

<a href="#top">Back to top</a>

Readme

Keywords

none

Package Sidebar

Install

npm i @voltary/tickets-qrgen

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

67.8 kB

Total Files

4

Last publish

Collaborators

  • theprimedev
  • iguessiplay