Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.