Skip to content

paveltyk/ex_parameterize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parameterize

CircleCI Hex.pm Hex.pm

Replaces special characters in a string so that it may be used as part of a ‘pretty’ URL. Supports any language.

Installation

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

def deps do
  [{:ex_parameterize, "~> 1.0"}]
end

Update your dependencies:

$ mix deps.get

Usage examples:

Parameterize.parameterize("Привет, Мир!")
"privet-mir"

Parameterize.parameterize("Hello, World!")
"hello-world"

Parameterize.parameterize("ሰላም ልዑል")
"salaame-leule"

Parameterize.parameterize("🍕")
nil

Links

License

Parameterize is released under MIT license.

Credits

About

Parameterize strings in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages