/fakedata

CLI utility for fake data generation

Primary LanguageGoMIT LicenseMIT

fakedata

CLI utility that generates data in various format.

Overview

fakedata is a small utility that generates data from the command line:

$ fakedata email country
cemshid@example.com Afghanistan
LucasPerdidao@example.me Turkey
arthurholcombe1@test.us Saint Helena
iamgarth@example.us Montenegro
joelcipriano@test.name Croatia
keryilmaz@test.name Vietnam
plbabin@test.org Lithuania
bermonpainter@test.us Haiti
opnsrce@example.name Malaysia
ankitind@test.info Virgin Islands, British

Limit the amout of generated rows:

$ fakedata country.code --limit 5
SH
CF
GQ
PE
FO

Choose a different output format:

$ fakedata product.category product.name --format=csv
Shoes,Rankfix
Automotive,Namis
Movies,Matquadfax
Tools,Damlight
Computers,Silverlux
Industrial,Matquadfax
Home,Sil-Home
Health,Toughwarm
Shoes,Freetop
Tools,Domnix

List the available generators:

$ fakedata --generators
color
country
country.code
domain
domain.name
domain.tld
double
email
event.action
http.method
id
ipv4
ipv6
latitude
longitude
mac.address
name
name.first
name.last
product.category
product.name
state
state.code
timezone
unixtime
username

Installation guide

Homebrew

fakedata can be installed through Homebrew:

$ brew tap lucapette/tap
$ brew install fakedata

Standalone

fakedata can be installed as an executable. Download the latest compiled binaries and put it anywhere in your executable path.

Source

Please refer to our contributing guidelines to build and install fakedata from the source.

How to contribute

Please refer to our contributing guidelines.

Code of Conduct

You are expected to follow our code of conduct when interacting with the project via issues, pull requests or in any other form. Many thanks to the awesome contributor covenant initiative!

License

MIT License Copyright (c) [2017] Luca Pette