diff options
| author | Matthew Bergman <[email protected]> | 2010-05-14 22:38:13 -0400 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2010-05-14 22:38:13 -0400 |
| commit | 04288f8e1f24be8daafc5282bc8df35fcbc27b05 (patch) | |
| tree | 97142b8ad9e8127aa554c7953e23e5706aa129bb /lib | |
| parent | 7176a0b8b39f1a635eee1dd7786980ec96707494 (diff) | |
| download | faker-04288f8e1f24be8daafc5282bc8df35fcbc27b05.tar.xz faker-04288f8e1f24be8daafc5282bc8df35fcbc27b05.zip | |
added helper file
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/address.js | 7 | ||||
| -rw-r--r-- | lib/name.js | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/address.js b/lib/address.js index e69de29b..690e74ba 100644 --- a/lib/address.js +++ b/lib/address.js @@ -0,0 +1,7 @@ +var Faker = {}; + +var Helper = require('../helper'); + +var company = exports.zip_code = function() { + return Helper.numerify(Helper.randomize(["#####", '#####-####'])); +}; diff --git a/lib/name.js b/lib/name.js index 22ff0bd2..dd564cd0 100644 --- a/lib/name.js +++ b/lib/name.js @@ -5,4 +5,4 @@ var name = exports.first_name = function(){ return definitions.first_name[0]; //Math.floor(Math.random()*10); -}; +};
\ No newline at end of file |
