Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 792 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 792 Bytes

Mnemonic Slugs

Mnemonic Slugs is an Elixir library that generates easy to remember slugs. It uses a slightly enhanced word list curated by Oren Tirosh as part of his mnemonic encoding project.

A fork of the original project can be found here.

Installation

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

def deps do
  [{:mnemonic_slugs, "~> 0.0.3"}]
end

and update your dependencies with mix deps.get.

Usage

You can generate slugs two ways:

  iex> MnemonicSlugs.generate_slug
  "aurora-bermuda"

  iex> MnemonicSlugs.generate_slug(10)
  "karate-textile-jungle-patrol-veteran-clone-nerve-stone-soviet-sting"

Full Documentation is at HexDocs.