Gleam library which provides casefold, a function to convert a string to a case-agnostic comparable string.
  • Gleam 77.1%
  • JavaScript 15.2%
  • Erlang 7.7%
Find a file
2026-01-07 15:13:47 +01:00
src 2.0.0: Move to Codeberg and add pop() 2025-12-10 23:15:46 +01:00
test 1.6.0: Add format() and format_named() 2025-12-01 09:59:46 +01:00
.gitignore Initial commit 2025-11-13 15:19:35 +01:00
gleam.toml 2.0.0: Move to Codeberg and add pop() 2025-12-10 23:15:46 +01:00
manifest.toml Update gleam_stdlib 2026-01-07 15:13:47 +01:00
README.md Update READMe 2025-12-10 23:17:38 +01:00

casefold

Package Version Hex Docs

A small collection of utility functions and constants for working with strings.

gleam add casefold@2
import casefold.{casefold}

pub fn main() -> Nil {
  assert casefold("Ω and ẞ SHARP S") == "ω and ss sharp s"
}

Further documentation can be found at https://hexdocs.pm/casefold.

Development

gleam build # Build the project
gleam test  # Run the tests