Elixir's String module in TypeScript


We have 14 Elixir functions so far - help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

  • Get inspiration from the Elixir documentation.
  • Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 5/54 shipped • 48 next 9%

Namespace-level inventory for Elixir 1.18: what we already ship, what we may still want, and what we intentionally skip or keep.

String

Elixir 1.18 · Catalog source: version-pinned source manifest elixir:1.18:String

9% shipped
5/53 shipped 48 next 1 explicit non-goals
Shipped (5)

Next

Elixir String helpers are strong plain-value portability targets.

  • at
  • bag_distance
  • byte_slice
  • capitalize
  • chunk
  • codepoints
  • contains?
  • duplicate
  • ends_with?
  • equivalent?
  • first
  • graphemes
  • jaro_distance
  • last
  • ljust
  • lstrip
  • match?
  • myers_difference
  • next_codepoint
  • next_grapheme
  • next_grapheme_size
  • normalize
  • pad_leading
  • pad_trailing
  • printable?
  • replace_leading
  • replace_prefix
  • replace_suffix
  • replace_trailing
  • rjust
  • rstrip
  • slice
  • split
  • split_at
  • splitter
  • starts_with?
  • strip
  • to_atom
  • to_char_list
  • to_charlist
  • to_existing_atom
  • to_float
  • to_integer
  • trim
  • trim_leading
  • trim_trailing
  • valid_character?
  • valid?
Explicit non-goals (1)
  • replace_invalid Skip Invalid-binary replacement semantics do not map cleanly to JS strings.

« More Elixir functions