
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
spritemaker-svg
Advanced tools
Create an SVG sprite map from SVG sprites.
npm install spritemaker-svg
var spritemaker = require('spritemaker-svg');
var sprites = [
{ id: 'sprite1', stream: getSpriteReadableStream('sprite1') },
{ id: 'sprite2', stream: getSpriteReadableStream('sprite2') },
{ id: 'sprite3', stream: getSpriteReadableStream('sprite3') },
{ id: 'sprite4', stream: getSpriteReadableStream('sprite4') }
]
var output = spritemaker(sprites);
// Pipe the resulting SVG somewhere.
output.pipe(process.stdout);
output.on('packed', function(data) {
// The information about the sprite packing is available.
// data.width: width of the resulting SVG
// data.height: height of the resulting SVG
// data.items: items within the sprite
// data.items[0].id: the ID passed in.
// data.items[0].x: the generated x coordinate of the sprite
// data.items[0].x: the generated y coordinate of the sprite
// data.items[0].width: the width of the sprite
// data.items[0].height: the height of the sprite
});
Contributing tests, documentation, or code is all appreciated. All code should be accompanied by valid tests.
FAQs
Create an SVG sprite map from SVG sprites
The npm package spritemaker-svg receives a total of 0 weekly downloads. As such, spritemaker-svg popularity was classified as not popular.
We found that spritemaker-svg 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.