svg2gcode icon indicating copy to clipboard operation
svg2gcode copied to clipboard

npm package

Open 2xAA opened this issue 1 year ago • 1 comments

It would be great to be able to consume the wasm file and a JavaScript wrapper using npm. Would this be simple to achieve?

This project is extremely useful. I've written a node.js project which reads a gcode file line by line and sends it to a serial port but I would like to streamline the SVG to gcode generation in my setup to directly send the resulting gcode to my plotter.

2xAA avatar Sep 19 '24 18:09 2xAA

+1 for this. I'm converting canvas to gcode using gcanvas, but its a bit buggy, and the gcanvas project isn't supported anymore.

Instead i'm using nodes canvas package, exporting as svg and then using this tool to convert to gcode. Would be nice to do that in one process

Paul-Browne avatar May 04 '25 19:05 Paul-Browne