npm install gcode2svgThis is a part of my [Arduino WIFI drawing bot][2] project.
List of all GCodes is here: [http://reprap.org/wiki/G-code][1]
##Usage
``javascript`
var gcode2svg = require('gcode2svg');
gcode2svg('G0 X1 Y1\nG1 X100 Y100');
##Installation
```
npm install --save gcode2svg
##Supported GCodes
* _G0_ - fast move
* _G1_ - draw straight line
* _G2_ - draw arc clockwise
* _G3_ - draw arc counterclockwise
* _G90_ - set absolute coordinates
* _G91_ - set relative coordinates
##Plans
* Support following GCodes:
* _G20_ - set units to inches
* _G21_ - set units to mm
* _M2_ - programm end
* _M600_ - filament change pause to change color
* _T#_ - change tool to change colors
* Support multiple tools with different options to swith betweent them and draw in multiple colors.
##Links
* [RepRap.org][3]
#License
MIT
[1]: http://reprap.org/wiki/G-code
[2]: https://github.com/alex18881/ArduinoWifiDrawbot
[3]: http://reprap.org