Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 1.23 KB

README.md

File metadata and controls

40 lines (21 loc) · 1.23 KB

Usco-gcode-parser

GitHub version

gcode format parser for USCO project

Optimized for speed in the browser (webworkers etc) and node.js

General information

  • returns raw buffer data wrapped in an RxJs observable (soon to be most.js)
  • useable both on Node.js & client side

Usage

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)
})

LICENSE

The MIT License (MIT)


Build Status Dependency Status devDependency Status