A CLI to add breaks to gcode files from Cura for 3D printing
npm install @drazhar/gcode-utils
npm i -g @drazhar/gcode-utils
`
This enables to use the package directly with gcode-utils
It's also possible to use the utilities directly without installing by utilizing the npm command:
`
npx @drazhar/gcode-utils
`
Options
The following options are implemented:
- --input | -i: gCode file to modify, relative to the current filepath.
- --output | -o: Name of the output. It will be saved at the same location as the inputfile.
- --type | -t: What to add to the gCode. The only options are pause or filamentChange.
- --layer | -l: Layer before which the break should be added. The layer numbering in Cura start by 1, but in the file with 0. So if you want to add the break after the currently visible layer in cura, you can add the displayed number from Cura.
If you don't specify any or all of the inputs, you will be prompted automatically. So it's perfectly valid to simply run npx @drazhar/gcode-utils` without any options.