Laserify converts CNC g-code to laser compatible g-code and does a little bit of g-code cleanup.
Options
h, --help: shows help information
-o, --outfile: outfile, for processed g-code, otherwise using STDOUT
-z, --zero: zeros all Z-direction moves, otherwise, z-moves are kept as is (except that pure z-moves without X or Y movement are done with laser turned off)
-lon, --laser-on: g-code to turn laser on (defaults to 'M3')
-loff, --laser-off : g-code to turn laser off (defaults to 'M5')
Laserify needs Python3 to run. It is a command line program and works on Windows, Linux and OSX.