Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
A minimal QR code image generator for SolidJS using node-qrcode
yarn add solid-qr
pnpm add solid-qr
npm i solid-qr
import SolidQR from "solid-qr"
// or
import { SolidQR } from "solid-qr"
const Example = () => {
return <SolidQR text="Hello World"/>
}
The solid-qr
component receives the same props as a regular img
would, plus two custom ones used to generate the QR code.
text
: A string
used to generate the QR Code.options
: An object with the following structureKey | Type | Default | Description |
---|---|---|---|
version | number | QR Code version ranging from 1 to 40. If not specified the more suitable value will be calculated. | |
errorCorrectionLevel | low | medium | quartile | high | medium | QR Code error correction level |
maskPattern | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mask pattern used to mask the symbol. If not specified the more suitable value will be calculated. | |
margin | number | 2 | Define how much wide the quiet zone should be. |
scale | number | 4 | Scale factor. A value of 1 means 1px per modules (black dots). |
width | number | 512 | Forces a specific width for the output image.If width is too small to contain the qr symbol, this option will be ignored.Takes precedence over scale . |
color.dark | string | #000000ff | Color of dark module. Value must be in hex format (RGBA). |
color.light | string | #ffffffff | Color of light module. Value must be in hex format (RGBA). |
1.0.1
FAQs
A minimal QR code image generator for SolidJS
The npm package solid-qr receives a total of 0 weekly downloads. As such, solid-qr popularity was classified as not popular.
We found that solid-qr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.