.nb file consists of the boxes, and the .m file is a pure text file, what can help to share on GitHub. Of course, we can open a .nb file with Mathematica, then Save As... it as a .m file. But I don't want to cost much time to open the FrontEnd to do such thing. If the CMD command can do this, it will help a lot. Is it possible?
I'm using Windows 10, of course, if someone provide a method based on other operation system, it is welcome here.
I think use FilePrint in wolframscript can do this, but actually it is don't work for me.
ExportPacketfunction here: https://mathematica.stackexchange.com/a/1411/363 – Chris Degnen Jan 12 '18 at 19:57