0.1.3 • Published 6 years ago

qrdude v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

qrdude

Build Status codecov

This is a utility library to get some help while using the goQR.me API to create a QR code from data.

Usage

So far the library allows to validate the data to make the request, just call the validateQrData function.

Example (es module)

import { validateQrData } from 'qrdude'
const validation = validateQrData({
  data: "some text",
  ...
})
if (validation.errors) {
  //handle
} else {
  //use data
  validation.data...
}

TODO

  • Create the URL to make the API call.

Notes

This is a toy library under development, it uses the TypeScript Starter project to setup the initial code.