
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-easy-qrcode-generator
Advanced tools
Easilty generate QR code from any text or url. It is based on QR Server API.
npm i react-easy-qrcode-generator # npm
yarn add react-easy-qrcode-generator # yarn
import React, { useState } from "react";
import { qrcodeGenerator } from "react-easy-qrcode-generator";
export default function App() {
const [value, setValue] = useState("");
return (
<div className="App">
<input value={value} onChange={(e) => setValue(e.target.value)} />
<button
onClick={() =>
qrcodeGenerator({
value: value,
size: "180x180",
title: "Title",
qrAlt: "QR Code Image",
showQrId: "qr-code",
})
}
>
Generator QR
</button>
<div id="qr-code" />
</div>
);
}
qrcodeGenerator({value, size, title, qrAlt, showQrId})
Takes the following parameters:
Parameter | Type | Default value | Description |
---|---|---|---|
value | string | null | Required |
size | string | 180x180 | Optional |
title | string | React easy QR generator | Optional |
qrAlt | string | React easy QR image | Optional |
showQrId | string | null | Required |
color | string | 0-0-0 | Optional |
bgcolor | string | 255-255-255 Valid examples for color and bgcolor: 255-0-0 (red),f00 (red), FF0000 (red), 0-255-0 (green), 0f0 (green), 00ff00 (green), 0-0-255 (blue), 00f (blue), 0000ff (blue), 556B2F (DarkOliveGreen) | Optional |
FAQs
Easy QR Code generator for React
The npm package react-easy-qrcode-generator receives a total of 339 weekly downloads. As such, react-easy-qrcode-generator popularity was classified as not popular.
We found that react-easy-qrcode-generator 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.