GCode JSON Converter
A basic tool for converting GCode into a JSON object and GCode JSON objects back into gcode.
Contributing
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributions.
const gcodeToObject = gcodeToObject;const objectToGcode = objectToGcode;// Convert a line of gcode into an objectconst g1Result = ;const objectResult =command: 'G1'args:x: -01comment: ' soooo cool';// Convert a gcode object back into a line of gcodeconst backToGcode = ;const stringResult = 'G1 X-0.1; so cooool'