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.
node-qr-image
Advanced tools
#####THIS REPO IS BESED ON alexeyten/qr-image
#####DIFFERENCES:
size
option to image's width
|| height
.margin
option.This is yet another QR Code generator.
png
, svg
, eps
and pdf
formats;npm install node-qr-image
Example:
var qr = require('node-qr-image');
var qr_svg = qr.image('I love QR!', { type: 'svg' });
qr_svg.pipe(require('fs').createWriteStream('i_love_qr.svg'));
var svg_string = qr.imageSync('I love QR!', { type: 'svg' });
qr = require('node-qr-image')
qr.image(text, [ec_level | options])
— Readable stream with image data;qr.imageSync(text, [ec_level | options])
— string with image data. (Buffer for png
);qr.svgObject(text, [ec_level | options])
— object with SVG path and size;qr.matrix(text, [ec_level])
— 2D array.text
— text to encode;ec_level
— error correction level. One of L
, M
, Q
, H
. Default M
.options
— image options object:
ec_level
— default M
.type
— image type. Possible values png
(default), svg
, pdf
and eps
.size
(png and svg only) — size of IMAGE's width or height in pixels. Default 100
for png and undefined
for svg.margin
— white space around QR image in modules. Default 4
for png
and 1
for others.customize
(only png) — function to customize qr bitmap before encoding to PNG.parse_url
(experimental, default false
) — try to optimize QR-code for URLs.imageSync
for png
.FAQs
QR Code generator (png, svg, pdf, eps)
The npm package node-qr-image receives a total of 94 weekly downloads. As such, node-qr-image popularity was classified as not popular.
We found that node-qr-image 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.