Generate Heroku-like memorable random names to use in your apps or anywhere else.
Add this to your application's shard.yml
:
dependencies:
haikunator:
github: osfx/haikunator
require "haikunator"
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"
TODO: Write usage instructions here
crystal spec
- Fork it ( https://github.com/sanata-/haikunator/master )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Haikunator based on Usman Bashir awesome gem and also have ports to other languages.
- Ruby:
- Go:
- JavaScript:
- Python:
- PHP:
- Elixir:
- .NET:
- Java:
- Dart:
- Rust
- [[Peter Boriskin]](https://github.com/osfx # - creator, maintainer