
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
crypto-qr-code
Advanced tools
crypto-qr-code is a library for generating QR codes for cryptocurrency wallet addresses, supporting Bitcoin (BTC) and Ethereum (ETH). It provides options for customizing the QR code's format and currency type.
You can install crypto-qr-code via npm:
npm install crypto-qr-code
Here's how to use the library:
import crypto-qr-codeGenerator from 'crypto-qr-code';
const qrGenerator = new crypto-qr-codeGenerator();
async function generateQRCode() {
try {
const qrCodeImage = await qrGenerator.generateQRCode('your_wallet_address', { currency: 'BTC' });
console.log(qrCodeImage); // Outputs the QR code as a base64-encoded image
} catch (error) {
console.error(error);
}
}
generateQRCode();
The generateQRCode method accepts two parameters:
BTC). Options are BTC for Bitcoin and ETH for Ethereum.image/png). Options are image/png, image/jpeg, and image/svg+xml.const qrCodeImage = await qrGenerator.generateQRCode('your_btc_wallet_address', { currency: 'BTC', format: 'image/png' });
console.log(qrCodeImage); // Base64 encoded PNG image
const qrCodeImageETH = await qrGenerator.generateQRCode('your_eth_wallet_address', { currency: 'ETH', format: 'image/jpeg' });
console.log(qrCodeImageETH); // Base64 encoded JPEG image
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A library to generate QR codes for cryptocurrency wallet addresses.
We found that crypto-qr-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.