Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.1 KB

README.md

File metadata and controls

55 lines (44 loc) · 1.1 KB

faker (cli)

Usage

1.) Run a quick lookup

$ faker search name
# Faker::SwordArtOnline
# └── real_name
# └── game_name
# Faker::Superhero
# └── name
# ....

2.) List methods

$ faker list
# Faker::BackToTheFuture
# ├── quote
# ├── date
# └── character
# Faker::Finance
# └── credit_card
# ....

faker also includes an option to display sample output via the --verbose or -v flag. 😉

3.)

$ faker list -v
# Faker::Appliance
# ├── brand=> Whirlpool
# └── equipment=> Sump pump
# Faker::UmphreysMcgee
# └── song=> Headphones & Snowcones
$ faker search name -v
# Faker::App
# └── name=> Subin
# Faker::Address
# └── street_name=> Percy Landing
# ....

Features! 😎 👯

  • List classes with methods E.g. Faker::FunnyName is displayed with .name,.first_name e.t.c.
  • Expand search to Faker::Base sub classes
  • Paginate results 📖

screenshot 2019-01-05 at 03 02 08