Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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 80 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.