aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMatthew Bergman <[email protected]>2010-05-14 22:38:13 -0400
committerMatthew Bergman <[email protected]>2010-05-14 22:38:13 -0400
commit04288f8e1f24be8daafc5282bc8df35fcbc27b05 (patch)
tree97142b8ad9e8127aa554c7953e23e5706aa129bb /index.js
parent7176a0b8b39f1a635eee1dd7786980ec96707494 (diff)
downloadfaker-04288f8e1f24be8daafc5282bc8df35fcbc27b05.tar.xz
faker-04288f8e1f24be8daafc5282bc8df35fcbc27b05.zip
added helper file
Diffstat (limited to 'index.js')
-rw-r--r--index.js27
1 files changed, 3 insertions, 24 deletions
diff --git a/index.js b/index.js
index 63cff62d..8c8c11c6 100644
--- a/index.js
+++ b/index.js
@@ -5,30 +5,9 @@ var definitions = require('./lib/definitions');
var Faker = {};
Faker.Name = require('./lib/name');
+Faker.Address = require('./lib/address');
-
-Faker.numerify = function(number_string){
- var str = '';
- for(var i = 0; i < number_string.length; i++){
- if(number_string[i] == "#"){
- str += Math.floor(Math.random()*10);
- }
- else{
- str += number_string[i]
- }
- }
- return str;
-};
-
-Faker.letterify = function(letter_string){
- //return letter_string.gsub(/\?/) { ('a'..'z').to_a.rand }
- return 'zzz';
-};
-Faker.bothify = function(string){
- // self.letterify(self.numerify(string))
- //letterify
- return 'zz11zz';
-};
-
+var Helper = require('helper');;
sys.puts(JSON.stringify(Faker.Name.first_name()));
+sys.puts(JSON.stringify(Faker.Address.zip_code()));