v1.1.0
Generate Thai PromptPay QR code string and Base64-encoded images in Deno.
Repository
Current version released
4 years ago
Dependencies
deno.land/x
Versions
Deno PromptPay
Generate Thai PromptPay QR code string and Base64-encoded images in Deno.
Getting started
import { PromptPay } from "https://deno.land/x/promptpay/mod.ts";
const promptpay = new PromptPay("0812345678", 1000);
const qrCodeString = promptpay.generate();
const base64Image = promptpay.generateBase64Data(); // Base64-encoded image
const base64Image300px = promptpay.generateBase64Data(300); // Base64-encoded image
Development
Run tests:
deno test
Dependency
- QR generator by denorg/qrcode
License
- MIT © Chonchanok MueangRuangWit