Project

politokens

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Generate memorable random names to use in your apps or anywhere else. Fork of Haikunator with a gepolitical twist
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

Politokens

Gem Version Build Status Coverage Status

Generate Heroku-like memorable random names to use in your apps or anywhere else, but with a geopolitical twist. Fork of Haikunator

Installation

Add this line to your application's Gemfile:

gem 'politokens'

And then execute:

$ bundle

Or install it yourself as:

$ gem install politokens

Usage

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

Politokens.politoke # => "courteous-honduras-4520"

# Token range
Politokens.politoke(100) # => "warmhearted-slovenia-93"

# Don't include the token
Politokens.politoke(0) # => "forceful-denmark"

# Use a different delimiter
Politokens.politoke(9999, '.') # => "courageous.laos.7447"

# No token, no delimiter
Politokens.politoke(0, ' ') # => "thoughtful ghana"

Contributing

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