/word_smith

Elixir String Manipulation

Primary LanguageElixirMIT LicenseMIT

Build Status Hex Version

WordSmith

General text utility library to help with string manipulation not found in the standard Elixir library.

Functionality

Remove Accents / Diacritics From Strings

  WordSmith.remove_accents("Ĥĕľŀö Ŵóŕƚƌ ©") # => "Hello World (C)"

Squish Strings

  WordSmith.squish("\nHello \t  World!\n  ") #=> "Hello World!"

Installation

Add word_smith to your list of dependencies in mix.exs:

  def deps do
    [{:word_smith, "~> 0.2.0"}]
  end