Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CyrusOfEden/haikunator
Generate Heroku-like memorable random names to use in your apps or anywhere else.
https://github.com/CyrusOfEden/haikunator
Last synced: about 1 month ago
JSON representation
Generate Heroku-like memorable random names to use in your apps or anywhere else.
- Host: GitHub
- URL: https://github.com/CyrusOfEden/haikunator
- Owner: CyrusOfEden
- Created: 2015-08-02T04:47:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T14:02:26.000Z (over 7 years ago)
- Last Synced: 2024-09-16T17:46:27.170Z (3 months ago)
- Language: Elixir
- Size: 123 KB
- Stars: 27
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Generate Heroku-like memorable random names to use in your apps or anywhere else. (Text and Numbers)
README
Haikunator [![Build Status](https://travis-ci.org/knrz/Haikunator.svg?branch=master)](https://travis-ci.org/knrz/Haikunator) [![Inline docs](http://inch-ci.org/github/knrz/Haikunator.svg?branch=master)](http://inch-ci.org/github/knrz/Haikunator)
==========Generate Heroku-like memorable random names to use in your apps or anywhere else.
Installation
------------Add Haikunator to your `mix.exs` dependencies:
```elixir
defp deps do
[{:haikunator, "~> 1.0.0"}]
end
```Then run `$ mix deps.get`. And also `$ mix deps.compile`, for kicks.
Usage
-----```elixir
Haikunator.build # => "morning-star-6817"# Token range
Haikunator.build(100) # => "summer-dawn-24"# Don't include the token
Haikunator.build(0) # => "ancient-frost"# Use a different delimiter
Haikunator.build(9999, ".") # => "frosty.leaf.8347"# No token, no delimiter
Haikunator.build(0, "") # => "twilightbreeze"
```License
-------Copyright (c) 2015 Kash Nouroozi
This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE file for more details.
Other Languages
---------------Haikunator is available in other languages. Check them out:
* Ruby: https://github.com/usmanbashir/haikunator
* Node: https://github.com/AtroxDev/haikunatorjs
* Python: https://github.com/AtroxDev/haikunator
* Go: https://github.com/yelinaung/go-haikunator