forked from zuriby/Faker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (24 loc) · 1.07 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
33
34
/*
this index.js file is used for including the Faker library as a CommonJS module, instead of a bundle
you can include the Faker library into your existing node.js application by requiring the entire /Faker directory
var Faker = require(./Faker)();
var randomName = Faker.Name.findName();
you can also simply include the "Faker.js" file which is the auto-generated bundled version of the Faker library
var Faker = require(./customAppPath/Faker);
var randomName = Faker.Name.findName();
if you plan on modifying the Faker library you should be performing your changes in the /lib/ directory
*/
module.exports = function(options) {
return {
Name: require('./lib/name'),
Address: require('./lib/address'),
PhoneNumber: require('./lib/phone_number'),
Internet: require('./lib/internet'),
Company: require('./lib/company'),
Lorem: require('./lib/lorem'),
Helpers: require('./lib/helpers'),
Custom: require('./lib/custom')(options),
definitions: require('./lib/definitions'),
version: require('./lib/version')
}
}