Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremy-rifkin/microfmt
Very small (~300 line) C++ text formatting library
https://github.com/jeremy-rifkin/microfmt
Last synced: 27 days ago
JSON representation
Very small (~300 line) C++ text formatting library
- Host: GitHub
- URL: https://github.com/jeremy-rifkin/microfmt
- Owner: jeremy-rifkin
- License: mit
- Created: 2024-03-30T02:52:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T01:48:34.000Z (about 2 months ago)
- Last Synced: 2024-11-16T02:17:53.105Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microfmt
[![build](https://github.com/jeremy-rifkin/microfmt/actions/workflows/build.yml/badge.svg)](https://github.com/jeremy-rifkin/microfmt/actions/workflows/build.yml)
[![test](https://github.com/jeremy-rifkin/microfmt/actions/workflows/test.yml/badge.svg)](https://github.com/jeremy-rifkin/microfmt/actions/workflows/test.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=jeremy-rifkin_microfmt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=jeremy-rifkin_microfmt)Microfmt is a very small (~300 line) formatting library. It's much more primitive than std::format or libfmt but it's
small and fast.I haven't benchmarked against libfmt however I have found this library to be faster than std::format and more than twice
as fast as a stringstream.It only supports string types and integers.
I wrote this because I needed basic formatting ability in two libraries but didn't want to pull in libfmt since that
would be an extra thing for downstream users who aren't using conan, vcpkg, or FetchContent to worry about.