What is this about?
Even more useful is probably a command line interface for this package, called
antlr-format-cli, which provides a terminal application for grammar formatting, available in the same repo, in the cli/ subfolder and as separate Node.js package
https://www.npmjs.com/package/antlr-format-cli. All necessary details how to use both can be read in their respective readme files.
The command line tool can be used independently of what your preferred programming languages are. The only prerequisite is that a recent Node.js version is installed on your box.
Some more details
I hope you like it and find it useful.