@richardmcquiston01/gcode
v0.4.0
Published
G-code generation and parsing for laser/CNC/maker machines
Maintainers
Readme
@richardmcquiston01/gcode
G-code generation and parsing for laser, CNC and other maker machines: convert vector paths or raster images to G-code, and parse G-code back into moves with bounds.
Part of maker-image-tools.
Install
npm i @richardmcquiston01/gcodeUsage
import { computeGcodeBounds, parseGcode, pathsToGcode } from "@richardmcquiston01/gcode";
const gcode: string = pathsToGcode(paths);
const bounds = computeGcodeBounds(parseGcode(gcode));ESM only.
License
MIT
