New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@forresto/svg-to-cnc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forresto/svg-to-cnc - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

build/index.js

@@ -12,6 +12,5 @@ import svgpath from './web_modules/svgpath.js';

// Don't want SVG viewBox while measuring
const viewBox = pathified.getAttribute('viewBox');
const toMeasure = pathified.cloneNode(true);
// toMeasure.removeAttribute('width');
// toMeasure.removeAttribute('height');
toMeasure.removeAttribute('width');
toMeasure.removeAttribute('height');
toMeasure.removeAttribute('viewBox');

@@ -18,0 +17,0 @@

@@ -12,6 +12,5 @@ import svgpath from 'svgpath';

// Don't want SVG viewBox while measuring
const viewBox = pathified.getAttribute('viewBox');
const toMeasure = pathified.cloneNode(true);
// toMeasure.removeAttribute('width');
// toMeasure.removeAttribute('height');
toMeasure.removeAttribute('width');
toMeasure.removeAttribute('height');
toMeasure.removeAttribute('viewBox');

@@ -18,0 +17,0 @@

4

package.json
{
"name": "@forresto/svg-to-cnc",
"version": "0.0.1",
"description": "Compiles SVG paths for CNC software down to basic X/Y movements. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in Cricut, and then set the tool for each layer.",
"version": "0.0.2",
"description": "Compiles SVG shapes and transforms for CNC software down to basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in CAM software (like Cricut Designer), and then set the tool for each layer.",
"main": "index.js",

@@ -6,0 +6,0 @@ "module": "build/index.js",

# svg-to-cnc
Compiles SVG paths for CNC software down basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in Cricut, and then set the tool for each layer.
Compiles SVG shapes and transforms for CNC software down to basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in CAM software (like Cricut Designer), and then set the tool for each layer.

@@ -58,3 +58,3 @@ Demo, with SVG file input: https://observablehq.com/@forresto/svg-to-cnc

- [ ] Fix unneeded penup / pendown (\`M\`)
- [ ] Option to not consolidate paths (only group by "tool")
- [x] Option to not consolidate paths (only group by "tool")
- [ ] Nix fills?
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