dfmt
brew install dfmt
v0.15.2
BSL-1.0
Formatter for D source code
61
30-day installs · #4284
239
90-day · #3879
1.4k
365-day · #3359
216
★ GitHub stars · updated 2mo ago
Build dependencies
GitHub topics
code-formatter
dlang
formatter
Links
- https://github.com/dlang-community/dfmt
- GitHub: dlang-community/dfmt
- Brew formula source: Formula/d/dfmt.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"ldc"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Formatter for D source code",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:55+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "dfmt",
"github_default_branch": "master",
"github_last_commit_at": "2026-05-30T13:54:25Z",
"github_readme_excerpt": "# dfmt [](https://github.com/dlang-community/dfmt/actions?query=workflow%3A%22D%22)\n\n**dfmt** is a formatter for D source code\n\n## Status\n**dfmt** is beta quality. Make backups of your files or use source control\nwhen using the **--inplace** option.\n\n## Installation\n\n### Installing with DUB\n\n```sh\n\u003e dub run dfmt -- -h\n```\n\n### Building from source using Make\n* Clone the repository\n* Run ```git submodule update --init --recursive``` in the dfmt directory\n* To compile with DMD, run ```make``` in the dfmt directory. To compile with\n LDC, run ```make ldc``` instead. The generated binary will be placed in ```dfmt/bin/```.\n\n### Building from source using dub\n* Clone the repository\n* run `dub build --build=release`, optionally with `--compiler=ldc2`\n\n## Using\nBy default, dfmt reads its input from **stdin** and writes to **stdout**.\nIf a file name is specified on the command line, input will be read from the\nfile instead, and output will be written to **stdout**.\n\n**dfmt** uses [EditorConfig](http://editorconfig.org/) files for configuration. If you run **dfmt** on a\nsource file it will look for *.editorconfig* files that apply to that source file.\nIf no file is specified on the command line, **dfmt** will look for *.editorconfig*\nfiles that would apply to a D file in the current working directory. Command\nline options can be used instead of *.editorconfig* files, or to override options\nfound there.\n\n### Options\n* `--help | -h`: Display command line options.\n* `--inplace | -i`: A file name is required and the file will be edited in-place.\n* `--align_switch_statements`: *see dfmt_align_switch_statements [below](#dfmt-specific-properties)*\n* `--brace_style`: *see dfmt_brace_style [below](#dfmt-specific-properties)*\n* `--compact_labeled_statements`: *see dfmt_compact_labeled_statements [below](#dfmt-specific-properties)*\n* `--end_of_line`: *see end_of_line [below](#standard-editorconfig-",
"github_repo": "dlang-community/dfmt",
"github_stars": 216,
"github_topics": [
"code-formatter",
"dlang",
"formatter"
],
"homepage": "https://github.com/dlang-community/dfmt",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 61,
"installs_365d": 1352,
"installs_90d": 239,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSL-1.0",
"llm_generated_at": null,
"llm_model": null,
"name": "dfmt",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 4284,
"rank_365d": 3359,
"rank_90d": 3879,
"raw_hash": "2ba53da8360aa9ea",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/d/dfmt.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.15.2",
"versioned_formulae": [],
"why_use_this": null
}