Skip to content

module to generate qr bitmaps used by @baked/qr-react

Notifications You must be signed in to change notification settings

baked-dev/qr-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@baked/qr-util

used by @baked/qr-react

Usage

import QRCode, { ErrorCorrectionLevels } from '@baked/qr-util';

const qr_matrix = new QRCode('https://google.com', {
  ecl: ErrorCorrectionLevels.M,
}).encode();      // => number[][]

Notes

  • the generated codes are not 100% right yet. Anything but the lowest ecl can be scanned fine on iOS and android
  • No kanji encoding mode support (yet)

About

module to generate qr bitmaps used by @baked/qr-react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published