Skip to content

devshane/mnemonic_slugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An Elixir library for generating memorable slugs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages