0.0.1 • Published 1 year ago

pixelpass-js v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

PixelPass

Features

  • Create QR Code for given data
  • Uses zlib compression and base45 encoding
  • Decode QR data encoded by PixelPass

APIs

generateQRData( data, header )

data - Data needs to be compressed and encoded

header - Data header need to be prepened to identtify the encoded data. defaults to ""

returns a zlib compressed and base45 encoded string with header prepended if provided.

generateQRBase64( data, ecc , header )

data - Data needs to be compressed and encoded

ecc - Erro Correction Level for the QR generated. defaults to "M"

header - Data header need to be prepened to identtify the encoded data. defaults to ""

returns a base64 encoded PNG image with header prepended if provided.

decodeData(base45Data)

base45Data - Data needs to be decoded and decompressed without header

returns a base45 decoded and zlib decompressed string

License

MIT

0.0.1

1 year ago