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.
svg-invader-gen
Advanced tools
npm install -g svg-invader-gen
svg-invader-gen [OPTIONS]
-x #
, --pixel-width=#
[NUMBER] Width of "pixel" (Default is 20)-y #
, --pixel-height=#
[NUMBER] Height of "pixel" (Default is 20)-w #
, --pixels-wide=#
[NUMBER] Number of pixels wide to make the sprite (Default is 5)-h #
, --pixels-high=#
[NUMBER] Number of pixels high to make the sprite (Default is 5)-n
, --non-symmetric
[FLAG] Don't mirror the sprite across the vertical axis-o [TYPE]
, --output-type=[TYPE]
[STRING] Output type: "svg", "html", or "text" (Default is "svg")npm install -S svg-invader-gen
const invaderGen = require('svg-invader-gen');
const opts = {
pixelsWide: 5,
pixelsHigh: 5,
pixelWidth: 20,
pixelHeight: 20,
verticalSymmetry: true,
outputType: 'svg',
};
const go = () => {
const sprite = invaderGen.getSprite(opts);
const svg = invaderGen.outputSprite(opts, sprite);
console.log(svg);
};
go();
import { Sprite, SpriteOptions, getSprite, outputSprite } from 'svg-invader-gen';
const opts: SpriteOptions = {
pixelsWide: 5,
pixelsHigh: 5,
pixelWidth: 20,
pixelHeight: 20,
verticalSymmetry: true,
outputType: 'svg',
};
const go = () => {
const sprite: Sprite = getSprite(opts);
const svg: string = outputSprite(opts, sprite);
console.log(svg);
};
go();
FAQs
Generate Space-Invader-like sprites as SVG images
We found that svg-invader-gen 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.