Gleam library which provides casefold, a function to convert a string to a case-agnostic comparable string.
  • Gleam 83.5%
  • JavaScript 11%
  • Erlang 5.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-22 19:18:36 +02:00
src feat: split_at 2026-05-26 00:01:04 -04:00
test feat: split_at 2026-05-26 00:01:04 -04:00
.gitignore Initial commit 2025-11-13 15:19:35 +01:00
gleam.toml Version 2.2.0 2026-09-22 19:18:36 +02:00
manifest.toml Update dependencies 2026-09-22 19:17:50 +02: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