Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @forresto/svg-to-cnc with all npm packages installed. Try it out:

var svgToCnc = require("@forresto/svg-to-cnc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@forresto/svg-to-cnc v0.0.2

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free