mo-fmt
JSON →A standalone CLI tool for formatting Motoko source files, built on Prettier (v2.7) and the prettier-plugin-motoko plugin. Current stable version is 0.13.0, released by DFINITY. It offers a simple command-line interface for formatting .mo files in-place or checking format compliance. The tool can be installed globally via npm or used via npx; portable executables are also available for environments without Node.js. Compared to using the underlying Prettier plugin directly, mo-fmt provides a streamlined, zero-configuration experience for Motoko developers.
Resources
packagemo-fmt ↗