forked from Geertvdc/faker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
36 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
33
34
35
36
/*
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.definitions = require('./lib/definitions');
// Backward compatibility
exports.Name = exports.name;
exports.Address = exports.address;
exports.PhoneNumber = exports.phoneNumber;
exports.Internet = exports.internet;
exports.Company = exports.company;
exports.Lorem = exports.lorem;
exports.Helpers = exports.helpers;