Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Lean QR is a lightweight yet fully-featured library for generating QR Codes. It runs in NodeJS and all recent browsers, and includes wrapper components for React and Preact. Under 4kB compressed.
You can see it in action online, or try it from the terminal:
npx lean-qr 'MY MESSAGE HERE'
See the Quickstart documentation for NodeJS / Browser / React / Preact / CLI usage.
npm install --save lean-qr
<canvas id="my-qr-code" />
<style>
#my-qr-code {
image-rendering: pixelated;
width: 100%;
}
</style>
import { generate } from 'lean-qr';
const qrCode = generate('LEAN-QR LIBRARY');
qrCode.toCanvas(document.getElementById('my-qr-code'));
There is a bug in JSDOM which prevents this class being available in tests. This issue only affects JSDOM, and can be fixed with:
import { TextEncoder, TextDecoder } from 'node:util';
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
You can put this in the test file or in Jest's setupFilesAfterEnv
config.
You should not put this in your application code.
FAQs
minimal QR code generation
The npm package lean-qr receives a total of 1,690 weekly downloads. As such, lean-qr popularity was classified as popular.
We found that lean-qr 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.