Skip to content

fake-gen is a very simple CLI Tool to generates fake US contacts.

License

Notifications You must be signed in to change notification settings

alidevhere/fake-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Fake Numbers Generator

fake-gen

fake-gen is a single command cli tool. It generates US phone numbers in format AAA-555-NNNN. AAA is area code, and NNNN is any random number between 0001 to 9999.

Installation:

Linux:

wget https://github.com/alidevhere/fake-gen/releases/download/v0.1.14/fake-gen_0.1.14_linux_amd64

Make is executeable:

chmod +x fake-gen_0.1.14_linux_amd64

Run

./fake-gen_0.1.14_linux_amd64 [flags]

Use:

Flag Short Hand Use
column c To specify column in output csv file
limit l To specify rows in output csv file
out o To specify name of generated file pass only name(no extension) by default it is csv
unique u To generate unique phone numbers

Note: 3 types of columns are supported as of now name,age and phone. -c flag can have any of these three values.

Example-1:

We want to generate a csv file of 10 rows with following configurations

huge_data.csv

first_name last_name age mobile_phone
ali ashraf 22 1234567890
... ... ... ...

We will use command like this:

fake-gen --limit 10 --out huge_data --column name --column name --column age --column phone

OR by using shorthand

fake-gen -l 10 -u -o huge_data -c name -c name -c age -c phone

OR to generate only unique phone numbers add flag --unique or -u

fake-gen --limit 10 --out huge_data --column name --column name --column age --column phone --unique

Example-2:

We want to generate a csv file of 100 rows with following configurations

huge_data.csv

first_name last_name age mobile_phone work_phone home_phone
ali ashraf 22 1234567891 1234567892 1234567893
... ... ... ...

We will use command like this:

fake-gen --limit 100 --out huge_data --column name --column name --column age --column phone --column phone --column phone

OR by using shorthand

fake-gen -l 10 -u -o huge_data -c name -c name -c age -c phone -c phone -c phone

OR to generate only unique phone numbers add flag --unique or -u

fake-gen -l 10 -u -o huge_data -c name -c name -c age -c phone -c phone -c phone -u

About

fake-gen is a very simple CLI Tool to generates fake US contacts.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages