This is a utility library to get some help while using the goQR.me API to create a QR code from data.
So far the library allows to validate the data to make the request, just call the validateQrData
function.
import { validateQrData } from 'qrdude'
const validation = validateQrData({
data: "some text",
...
})
if (validation.errors) {
//handle
} else {
//use data
validation.data...
}
- Create the URL to make the API call.
This is a toy library under development, it uses the TypeScript Starter project to setup the initial code.