diff options
| author | Marak Squires <[email protected]> | 2010-05-15 22:59:16 -0400 |
|---|---|---|
| committer | Marak Squires <[email protected]> | 2010-05-15 22:59:16 -0400 |
| commit | 755ab70334f2cb8fb0f5832c0189acb05dd5576a (patch) | |
| tree | d8993f16cbc73dbc3156e23a0543c8f27e1ee416 | |
| parent | 447c45e1b0c3e491478f14c7614ebc5712a59df7 (diff) | |
| download | faker-755ab70334f2cb8fb0f5832c0189acb05dd5576a.tar.xz faker-755ab70334f2cb8fb0f5832c0189acb05dd5576a.zip | |
adding more comments
| -rw-r--r-- | BUILD/docs.js | 2 | ||||
| -rw-r--r-- | index.js | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/BUILD/docs.js b/BUILD/docs.js index 8fc03003..0632039a 100644 --- a/BUILD/docs.js +++ b/BUILD/docs.js @@ -16,7 +16,7 @@ ### node.js - - var Faker = require(./Faker); + var Faker = require('./Faker'); var randomName = Faker.Name.findName(); @@ -1,3 +1,20 @@ +/* + + this index.js file is used for including the Faker libraryas a CommonJS module + + 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 + if you plan on modifying the Faker library you should be performing your changes in the /lib/ directory + + var Faker = require(./customAppPath/Faker); + var randomName = Faker.Name.findName(); + +*/ + exports.Name = require('./lib/name'); exports.Address = require('./lib/address'); exports.PhoneNumber = require('./lib/phone_number'); |
