Packages

RPG is a Role Playing Game engine written in Elixir. At this point it is not even a complete, modest RPG. However it has ambitions to be an RPG platform on which anyone can create their own role playing system.

Retired package: Security issue - This package was mistakenly published publicly.

Current section

Files

Jump to
rpg lib slug.ex
Raw

lib/slug.ex

defmodule Slug do
def from_string(string) when is_binary(string) do
string
|> String.downcase()
|> String.replace(~r/[\s-]/, "_", global: true)
|> String.to_atom()
end
end