1.0.0 • Published 3 months ago
qr-code-rsvp-generator v1.0.0
QR Code RSVP Generator
A simple QR Code RSVP Generator written in JavaScript.
Installation
You can install this package via npm:
npm install qr-code-rsvp-generator
Usage
const generateQRCode = require('qr-code-rsvp-generator');
generateQRCode({ name: "John Doe", email: "john@example.com" }).then((url) => {
console.log(url);
}).catch((err) => {
console.error(err);
});
API
generateQRCode(attendeeInfo)
Generates a QR Code containing an RSVP code for the provided attendee information.
attendeeInfo
: An object containing attendee information (e.g., name, email).
Returns a Promise that resolves with the data URL of the generated QR Code image.
Example
Generate a QR Code RSVP for an event attendee:
generateQRCode({ name: "John Doe", email: "john@example.com" }).then((url) => {
console.log(url);
}).catch((err) => {
console.error(err);
});
License
This project is licensed under the MIT License - see the LICENSE file for details.
1.0.0
3 months ago