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.
upn-with-qr-generator
Advanced tools
A TypeScript library for generating UPN + QR codes for Slovenian banks, complete with customizable fields and QR code export options. Essentially just a javascript rewrite of this PHP library with the same functionality.
Install via npm:
npm install upn-with-qr-generator
import { UPNGenerator, UPNWriter } from 'upn-generator';
// Define UPN data
const upnData = {
payerName: 'Janez Novak',
payerAddress: 'Dunajska ulica 1',
payerPost: '1000 Ljubljana',
receiverName: 'RentaCar d.o.o.',
receiverAddress: 'Pohorska ulica 22',
receiverPost: '2000 Maribor',
receiverIban: 'SI56020170014356205',
amount: 300.24,
code: 'RENT',
reference: 'SI121234567890120',
purpose: 'Plačilo najemnine za marec',
dueDate: '20231001' // Format YYYYMMDD
};
// Create a UPN writer
const upnWriter = new UPNWriter(upnData);
// Save as PNG
upnWriter.saveAsPNG('./output/UPNFinal.png');
// Get as base64 string
upnWriter.png().then(base64String => {
console.log('Base64 PNG:', base64String);
});
// Get as image buffer
upnWriter.gdResource().then(buffer => {
console.log('Image Buffer:', buffer);
});
Above example will output:
The MIT License (MIT). Please see License File for more information.
FAQs
A UPN + QR code generator for Slovenian banking system
The npm package upn-with-qr-generator receives a total of 11 weekly downloads. As such, upn-with-qr-generator popularity was classified as not popular.
We found that upn-with-qr-generator demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.