Project

haikunator

0.21
No release in over 3 years
Low commit activity in last 3 years
Generate memorable random names to use in your apps or anywhere else.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Haikunator

Gem Version Build Status Coverage Status

Generate Heroku-like memorable random names to use in your apps or anywhere else.

Installation

Add this line to your application's Gemfile:

gem 'haikunator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install haikunator

Usage

Haikunator is pretty simple. There is nothing to configure and it only has a single method, .haikunate:

Haikunator.haikunate # => "rough-snowflake-1142"

# Token range
Haikunator.haikunate(100) # => "nameless-star-13"

# Don't include the token
Haikunator.haikunate(0) # => "long-flower"

# Use a different delimiter
Haikunator.haikunate(9999, '.') # => "cool.leaf.6743"

# No token, no delimiter
Haikunator.haikunate(0, ' ') # => "green fire"

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

Language Ports

Haikunator has also been ported to other languages. Though, these projects are not affiliated with or endorsed by me, but check them out: