Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
zmp-qrcode
Advanced tools
React component for generating QR Code that match Zalo Miniapps looks and feels.
React component for generating QR codes that match Zalo Mini App looks and feels.
npm i zmp-qrcode
import { QRCode } from 'zmp-qrcode'
<QRCode value="https://www.npmjs.com/package/zmp-qrcode" />
Name | Description | Default |
---|---|---|
value* | string | - |
size | number | 128 |
You can export the QR code as a base64 image using ref. Here is an example:
export const Base64 = (args) => {
const ref = useRef<QRCodeInstance>()
const [src, setSrc] = useState('');
return <div>
<QRCode ref={el => el ? setTimeout(() => setSrc(el.getBase64()), 1000) : el} {...args} rounded />
<img src={src} alt="" />
</div>
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
React component for generating QR Code that match Zalo Miniapps looks and feels.
We found that zmp-qrcode demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.