exfmt v0.2.0 API Reference

Modules

Exfmt, an opinionated Elixir source code formatter. 🌸

A set of functions for creating and manipulating algebra documents

Functions for working with extended Elixir AST

Handling the conversion of infix operators to Algebgra

Converting extended Elixir AST to printable Algebra

We leverage Code.string_to_quoted/2 to get the AST from Elixir source code. This is great as it’s maintained by the core team (i.e. not me). This is not great as it doesn’t preserve comments, so we need to extract them ourselves and then merge them into the AST later

Exceptions

Mix Tasks

Formats Elixir source code