
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
"svg_gcode" is an npm package that converts SVG file inputs into G-code text. It is a modified version of the open source repository "gcodercnc2d5" by drandrewthomas, with additional modifications in jQuery.
"svg_gcode" is an npm package that converts SVG file inputs into G-code text. It is a modified version of the open source repository "gcodercnc2d5" by drandrewthomas, with additional modifications in jQuery.
v1.0.8 Removed fs, now works with ReactJS.
You can install the package using npm:
npm install svg_gcode
Here's an example of how to use "svg_gcode" to convert an SVG file into G-code text:
const svgGcode = require('svg_gcode');
// Read SVG file contents from a file or a string
var svgString = '<svg width="2480" height="3508" viewBox="0 0 2480 3508" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="2.5" y="2.5" width="2475" height="3503" stroke="black" stroke-width="5"/></svg>';
// Convert SVG to G-code
svgGcode(svgString, {
laserIntensity: 22,
laserOnSpeed: 400,
laserOffSpeed: 259,
}).then((gcode)=> console.log(gcode));
The svgGcode()
function takes an SVG file input as a string and returns the G-code text as a string. You can pass the SVG file input as a string or read it from a file.
This package is based on the open source repository "gcodercnc2d5" by drandrewthomas. You can find the original repository here: https://github.com/drandrewthomas/gcodercnc2d5.
This package is licensed under the MIT License. See the LICENSE file for details.
FAQs
"svg_gcode" is an npm package that converts SVG file inputs into G-code text. It is a modified version of the open source repository "gcodercnc2d5" by drandrewthomas, with additional modifications in jQuery.
The npm package svg_gcode receives a total of 3 weekly downloads. As such, svg_gcode popularity was classified as not popular.
We found that svg_gcode 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 uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).