deno/lib/fmt
2025-09-26 19:38:24 +02:00
..
helpers.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
indent.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
ini.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
mod.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
newlines.ts the biggest refactoring of 2024 2024-04-04 00:42:45 +02:00
readme.md lowercase readme 2025-09-26 19:38:24 +02:00

-/fmt

naive code formatter

indent() uses parantheses (), brackets [], and braces {} to try and guess the correct indentation for a given string of code.

newlines() takes a condition lambda and tries to add/remove newlines to group code together, e.g. in config files.

name function deps
fmt/helpers predefined condition lambdas
fmt/ini the only good .ini stringifier