Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-invader-gen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-invader-gen - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

lib/bin/generate.js

@@ -5,3 +5,4 @@ #!/usr/bin/env node

const cli = require("cli");
const index_1 = require("../index");
const generate_1 = require("../generate");
const output_1 = require("../output");
cli.enable('help', 'version');

@@ -25,9 +26,9 @@ const cliOpts = {

pixelsHigh: opts['pixels-high'],
verticalSymmetry: !!opts['non-symmetric'],
verticalSymmetry: !opts['non-symmetric'],
outputType: opts['output-type'],
};
const sprite = index_1.getSprite(spriteOpts);
const spriteStr = index_1.outputSprite(opts, sprite);
const sprite = generate_1.getSprite(spriteOpts);
const spriteStr = output_1.outputSprite(spriteOpts, sprite);
cli.output(spriteStr);
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYmluL2dlbmVyYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLDJCQUEyQjtBQUUzQixvQ0FLa0I7QUFFbEIsR0FBRyxDQUFDLE1BQU0sQ0FBQyxNQUFNLEVBQUUsU0FBUyxDQUFDLENBQUM7QUFFOUIsTUFBTSxPQUFPLEdBQUc7SUFDZCxhQUFhLEVBQUUsQ0FBQyxHQUFHLEVBQUUsK0JBQStCLEVBQUUsS0FBSyxFQUFFLEVBQUUsQ0FBQztJQUNoRSxjQUFjLEVBQUUsQ0FBQyxHQUFHLEVBQUUsZ0NBQWdDLEVBQUUsS0FBSyxFQUFFLEVBQUUsQ0FBQztJQUNsRSxhQUFhLEVBQUUsQ0FBQyxHQUFHLEVBQUUsc0RBQXNELEVBQUUsS0FBSy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PdXRwdXQgdHlwZTogXCJzdmdcIiwgXCJodG1sXCIsIG9yIFwidGV4dFwiJywgJ3N0cmluZycsICdzdmcnXSxcbn07XG5cbi8vIEB0eXBlcy9jbGkgZG9lc24ndCBtYXRjaC4uLlxuLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lIG5vLWFueVxuY2xpLnBhcnNlKDxhbnk+IGNsaU9wdHMpO1xuXG5jbGkubWFpbigoYXJncywgb3B0cykgPT4ge1xuICBjb25zdCBzcHJpdGVPcHRzOiBTcHJpdGVPcHRpb25zID0ge1xuICAgIHBpeGVsV2lkdGg6IG9wdHNbJ3BpeGVsLXdpZHRoJ10sXG4gICAgcGl4ZWxIZWlnaHQ6IG9wdHNbJ3BpeGVsLWhlaWdodCddLFxuICAgIHBpeGVsc1dpZGU6IG9wdHNbJ3BpeGVscy13aWRlJ10sXG4gICAgcGl4ZWxzSGlnaDogb3B0c1sncGl4ZWxzLWhpZ2gnXSxcbiAgICB2ZXJ0aWNhbFN5bW1ldHJ5OiAhb3B0c1snbm9uLXN5bW1ldHJpYyddLFxuICAgIG91dHB1dFR5cGU6IG9wdHNbJ291dHB1dC10eXBlJ10sXG4gIH07XG5cbiAgY29uc3Qgc3ByaXRlOiBTcHJpdGUgPSBnZXRTcHJpdGUoc3ByaXRlT3B0cyk7XG4gIGNvbnN0IHNwcml0ZVN0ciA9IG91dHB1dFNwcml0ZShzcHJpdGVPcHRzLCBzcHJpdGUpO1xuXG4gIGNsaS5vdXRwdXQoc3ByaXRlU3RyKTtcbn0pO1xuIl19

@@ -6,3 +6,3 @@ "use strict";

const getRect = (x, y, w, h, f) => {
return `<rect x="${x}" y="${y}" width="${w}" height="${h}" fill="#f" />`;
return `<rect x="${x}" y="${y}" width="${w}" height="${h}" fill="#${f}" />`;
};

@@ -32,2 +32,2 @@ /**

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ZnLmpzIiwic291cmNlUm9vdCI6IiIsInNv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fVxuICAgICAgPC9zdmc+XG4gICAgYDtcbiAgfTtcblxuICByZXR1cm4gcHJvY2Vzc091dHB1dChzcHJpdGUsIG9wdHMsIHBpeGVsRm4sIG91dHB1dEZuKTtcbn07XG4iXX0=
{
"name": "svg-invader-gen",
"version": "0.0.3",
"version": "0.0.4",
"description": "Generate Space-Invader-like sprites as SVG images",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc