| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Generate consistent-codenames from any string (Heroku style, aka Haiku).
This is a Ruby port of Python's codenamize.
$ gem install concode
$ concode --help
Usage:
concode <string> [options]
concode --random [options]
concode --count [options]
concode (-h|--help|-v|--version)
Options:
-w, --words N Number of words to generate
-c, --chars N Max characters per word
-g, --glue CHAR Word separator
-C, --caps Capitalize words
-n, --count Count possible combinations
-r, --random Generate a random code
-h, --help Show this message
-v, --version Show version$ concode hello
plausible-term
$ concode hello --words 3
ancient-plausible-term
$ concode hello --words 3 --chars 3 --caps --glue ' '
Cut Red Bar
$ concode --random -w4
cruel-aggressive-cute-worldrequire 'concode'
# basic use:
generator = Concode::Generator.new
puts generator.generate 'something annoying'
# => annoyed-poem
# or, with all the options:
generator = Concode::Generator.new words: 3, chars: 4, capitalize: true, glue: ' '
puts generator.generate 'something annoying'
# => Wise Rude Boot
# get the available combinations with:
puts generator.word_count
# => 7402200Thanks to Jose Juan Montes (@jjmontesl) for developing and documenting codenamize.
| Back | FazBrowse Home | New Git URL |