forked from zuriby/Faker.js
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.js
28 lines (19 loc) · 1.01 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
/*
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
*/
exports.Name = require('./lib/name');
exports.Address = require('./lib/address');
exports.PhoneNumber = require('./lib/phone_number');
exports.Internet = require('./lib/internet');
exports.Company = require('./lib/company');
exports.Lorem = require('./lib/lorem');
exports.Helpers = require('./lib/helpers');
exports.random = require('./lib/random');
exports.definitions = require('./lib/definitions');