naira-format

Crates.ionaira-format
lib.rsnaira-format
version0.2.0
created_at2025-12-14 18:09:25.600915+00
updated_at2025-12-14 18:21:47.969854+00
descriptionA lightweight Rust crate for formatting and parsing Nigerian Naira (₦) amounts.
homepagehttps://github.com/sublime247/naira-format
repositoryhttps://github.com/sublime247/naira-format
max_upload_size
id1984852
size8,771
Kushimo Bashir (sublime247)

documentation

https://docs.rs/naira-format

README

naira-format 🇳🇬

A lightweight, zero-dependency Rust crate for formatting, parsing, and converting Nigerian Naira (₦) amounts.

Built for fintech backends, dashboards, WASM apps, and mobile integrations.


✨ Features

  • Format Naira with proper thousands separators
  • Convert kobo ↔ naira
  • Compact formatting (₦1.2K, ₦2.5M, ₦3B)
  • Parse user-entered Naira strings
  • No external dependencies
  • Works in backend, WASM, and embedded contexts

📦 Installation

cargo add naira-format
Commit count: 0

cargo fmt