@radzor/qr-code
QR code generation and decoding. Produces PNG/SVG/terminal output from any string. Decodes QR codes from image buffers. Zero native dependencies.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| errorCorrection | 'L' | 'M' | 'Q' | 'H' | M | Error correction level. L=7%, M=15%, Q=25%, H=30% recovery capacity. |
| size | number | 300 | Output image size in pixels (square). |
| margin | number | 4 | Quiet zone margin in modules. |
| darkColor | string | #000000 | Dark module color (hex). |
| lightColor | string | #ffffff | Light module color (hex). |
Error correction level. L=7%, M=15%, Q=25%, H=30% recovery capacity.
default: M