forked from Geertvdc/faker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (26 loc) · 1.23 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var sys = require('sys');
var definitions = require('./lib/definitions');
var Faker = {};
Faker.Name = require('./lib/name');
Faker.Address = require('./lib/address');
Faker.PhoneNumber = require('./lib/phone_number');
Faker.Internet = require('./lib/internet');
Faker.Company = require('./lib/company');
var Helper = require('helper');;
sys.puts(JSON.stringify(Faker.Name.first_name()));
sys.puts(JSON.stringify(Faker.Name.findName()));
sys.puts(JSON.stringify(Faker.Address.zipCode()));
sys.puts(JSON.stringify(Faker.Address.secondaryAddress()));
sys.puts(JSON.stringify(Faker.Address.city()));
sys.puts(JSON.stringify(Faker.Address.streetName()));
sys.puts(JSON.stringify(Faker.Address.streetAddress()));
sys.puts(JSON.stringify(Faker.Address.streetAddress(true)));
sys.puts(JSON.stringify(Faker.Address.ukCountry()));
sys.puts(JSON.stringify(Faker.Address.ukCounty()));
sys.puts(JSON.stringify(Faker.PhoneNumber.phoneNumber()));
sys.puts(JSON.stringify(Faker.Internet.userName()));
sys.puts(JSON.stringify(Faker.Internet.email()));
sys.puts(JSON.stringify(Faker.Internet.domainName()));
sys.puts(JSON.stringify(Faker.Company.companyName()));
sys.puts(JSON.stringify(Faker.Company.catchPhrase()));
sys.puts(JSON.stringify(Faker.Company.bs()));