Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 755 Bytes

README.md

File metadata and controls

49 lines (32 loc) · 755 Bytes

do_username

A DigitalOcean-community-themed username generator.

https://rubygems.org/gems/do_username

Install

gem install do_username

Or, with bundler:

bundle add do_username

Example

require 'do_username'

# Generate a random username with a max length of 30 characters
puts DOUsername.generate

# Generate a random username with a max length of 15 characters
puts DOUsername.generate(15)
AdorableBlueGreenKelp
LargeStarfish

CLI

# Call the CLI command with a max length of 30 characters
$ do_username

# Call the CLI command with a max length of 10 characters
$ do_username 10 
GiantBlueGreenScubaDiver
BlueMorel

License

This project is licensed under Apache 2.0