gcode format parser for USCO project
Optimized for speed in the browser (webworkers etc) and node.js
- returns raw buffer data wrapped in an RxJs observable (soon to be most.js)
- useable both on Node.js & client side
import parse, {outputs} from '../lib/gcode-parser'
let data = fs.readFileSync("foo.gcode",'binary')
let gcodeObs = parse(data) //we get an observable back
gcodeObs.forEach(function(parsedGCode){
//DO what you want with the data wich is something like {vertices,normals,etc}
console.log(parsedGCode)
})