🍺 BREW Explorer

← all formulae

fmt

brew install fmt v12.2.0 MIT

Header-only C++ library providing type-safe string formatting, printf-style and range-based output.

Why you might care

Use fmt to replace unsafe sprintf/printf in C++ code with compile-time-checked format strings and zero runtime overhead. It's faster than std::ostringstream, supports custom types via specialization, and became the inspiration for std::format in C++20—many projects include it as a dependency or header for compatibility across compiler versions.

Categories

Alternatives

boost.format std::ostringstream printf
88.2k
30-day installs · #50
295.9k
90-day · #50
674.9k
365-day · #101

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "boost.format",
    "std::ostringstream",
    "printf"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "header-only-library",
    "formatter"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Open-source formatting library for C++",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:44+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "fmt",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://fmt.dev/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "Redirecting",
  "installs_30d": 88230,
  "installs_365d": 674947,
  "installs_90d": 295865,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:42:22+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "fmt",
  "oldnames": [],
  "one_liner": "Header-only C++ library providing type-safe string formatting, printf-style and range-based output.",
  "optional_dependencies": [],
  "rank_30d": 50,
  "rank_365d": 101,
  "rank_90d": 50,
  "raw_hash": "f782891ae6a852e6",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/f/fmt.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "12.2.0",
  "versioned_formulae": [],
  "why_use_this": "Use fmt to replace unsafe sprintf/printf in C++ code with compile-time-checked format strings and zero runtime overhead. It\u0027s faster than std::ostringstream, supports custom types via specialization, and became the inspiration for std::format in C++20\u2014many projects include it as a dependency or header for compatibility across compiler versions."
}