Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Npci complient qrcodes generator for using with node js (with type defination)
Generate NPCI's UPI QR code (BASE64) along with UPI intent link, By using it any payment is possible from UPI enabled apps.
This package will work on client and server.
import upiqrcode from "upiqrcode";
upiqr({
payeeVPA: "pratyaymustafi@paytm",
payeeName: "Pratyay Mustafi"
})
.then((upi) => {
console.log(upi.qr); // data:image/png;base64,eR0lGODP...
console.log(upi.intent); // upi://pay?pa=Pratyaymustafi@paytm&pn=Pratyay..
})
.catch(err => {
console.log(err);
});
Fields | Description | Required |
---|---|---|
payeeVPA | VPA address from UPI payment account | Mandatory |
payeeName | Merchant Name registered in UPI payment account | Mandatory |
payeeMerchantCode | Merchant Code from UPI payment account | Optional |
transactionId | Unique transaction id for merchant's reference | Optional |
transactionRef | Unique transaction id for merchant's reference | Optional |
transactionNote | Note will appear in payment app while transaction | Optional |
amount | Amount | Optional |
minimumAmount | Minimum amount that has to be transferred | Optional |
currency | Currency of amount (default: INR) | Optional |
transactionRefUrl | URL for the order | Optional |
In table, fields requirement column is based on static QR, For dynamic QR you need to change more fields along with payeeVPA
and payeeName
.
For a complete list of supported fields, refer to the NPCI UPI Linking Specs
Internally using @types/qrcode
for QR Generation.
FAQs
Npci complient qrcodes generator for using with node js (with type defination)
The npm package upiqrcode receives a total of 1 weekly downloads. As such, upiqrcode popularity was classified as not popular.
We found that upiqrcode 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.