Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename project

  • Loading branch information...
commit 39e530669b86538e982252ab38bada6be2713201 1 parent 939ec36
@shkuropat shkuropat authored
View
6 README.md
@@ -1,4 +1,4 @@
-FakerExt
-========
+Charlatan
+=========
-A library for generating fake data such as names, addresses, and phone numbers.
+A library for generating fake data such as names, addresses, and phone numbers.
View
2  index.js
@@ -1 +1 @@
-module.exports = require('./lib/faker_ext');
+module.exports = require('./lib/charlatan');
View
2  lib/faker_ext.js → lib/charlatan.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
exports.Name = require('./name');
exports.Address = require('./address');
View
82 lib/helpers.js
@@ -1,6 +1,6 @@
'use strict';
-var Faker = require('./faker_ext');
+var Charlatan = require('./charlatan');
// returns a single random number based on a range
exports.randomNumber = function(range) {
@@ -56,44 +56,44 @@ exports.generateDataSet = function(size){
exports.createCard = function(){
return {
- "name":Faker.Name.findName(),
- "username":Faker.Internet.userName(),
- "email":Faker.Internet.email(),
+ "name":Charlatan.Name.findName(),
+ "username":Charlatan.Internet.userName(),
+ "email":Charlatan.Internet.email(),
"address":{
- "streetA":Faker.Address.streetName(),
- "streetB":Faker.Address.streetAddress(),
- "streetC":Faker.Address.streetAddress(true),
- "streetD":Faker.Address.secondaryAddress(),
- "city":Faker.Address.city(),
- "ukCounty":Faker.Address.ukCounty(),
- "ukCountry":Faker.Address.ukCountry(),
- "zipcode":Faker.Address.zipCode()
+ "streetA":Charlatan.Address.streetName(),
+ "streetB":Charlatan.Address.streetAddress(),
+ "streetC":Charlatan.Address.streetAddress(true),
+ "streetD":Charlatan.Address.secondaryAddress(),
+ "city":Charlatan.Address.city(),
+ "ukCounty":Charlatan.Address.ukCounty(),
+ "ukCountry":Charlatan.Address.ukCountry(),
+ "zipcode":Charlatan.Address.zipCode()
},
- "phone":Faker.PhoneNumber.phoneNumber(),
- "website":Faker.Internet.domainName(),
+ "phone":Charlatan.PhoneNumber.phoneNumber(),
+ "website":Charlatan.Internet.domainName(),
"company":{
- "name":Faker.Company.companyName(),
- "catchPhrase":Faker.Company.catchPhrase(),
- "bs":Faker.Company.bs(),
+ "name":Charlatan.Company.companyName(),
+ "catchPhrase":Charlatan.Company.catchPhrase(),
+ "bs":Charlatan.Company.bs(),
},
"posts":[
{
- "words":Faker.Lorem.words(),
- "sentence":Faker.Lorem.sentence(),
- "sentences":Faker.Lorem.sentences(),
- "paragraph":Faker.Lorem.paragraph()
+ "words":Charlatan.Lorem.words(),
+ "sentence":Charlatan.Lorem.sentence(),
+ "sentences":Charlatan.Lorem.sentences(),
+ "paragraph":Charlatan.Lorem.paragraph()
},
{
- "words":Faker.Lorem.words(),
- "sentence":Faker.Lorem.sentence(),
- "sentences":Faker.Lorem.sentences(),
- "paragraph":Faker.Lorem.paragraph()
+ "words":Charlatan.Lorem.words(),
+ "sentence":Charlatan.Lorem.sentence(),
+ "sentences":Charlatan.Lorem.sentences(),
+ "paragraph":Charlatan.Lorem.paragraph()
},
{
- "words":Faker.Lorem.words(),
- "sentence":Faker.Lorem.sentence(),
- "sentences":Faker.Lorem.sentences(),
- "paragraph":Faker.Lorem.paragraph()
+ "words":Charlatan.Lorem.words(),
+ "sentence":Charlatan.Lorem.sentence(),
+ "sentences":Charlatan.Lorem.sentences(),
+ "paragraph":Charlatan.Lorem.paragraph()
}
]
};
@@ -103,21 +103,21 @@ exports.createCard = function(){
exports.userCard = function(){
return {
- "name":Faker.Name.findName(),
- "username":Faker.Internet.userName(),
- "email":Faker.Internet.email(),
+ "name":Charlatan.Name.findName(),
+ "username":Charlatan.Internet.userName(),
+ "email":Charlatan.Internet.email(),
"address":{
- "street":Faker.Address.streetName(true),
- "suite":Faker.Address.secondaryAddress(),
- "city":Faker.Address.city(),
- "zipcode":Faker.Address.zipCode()
+ "street":Charlatan.Address.streetName(true),
+ "suite":Charlatan.Address.secondaryAddress(),
+ "city":Charlatan.Address.city(),
+ "zipcode":Charlatan.Address.zipCode()
},
- "phone":Faker.PhoneNumber.phoneNumber(),
- "website":Faker.Internet.domainName(),
+ "phone":Charlatan.PhoneNumber.phoneNumber(),
+ "website":Charlatan.Internet.domainName(),
"company":{
- "name":Faker.Company.companyName(),
- "catchPhrase":Faker.Company.catchPhrase(),
- "bs":Faker.Company.bs(),
+ "name":Charlatan.Company.companyName(),
+ "catchPhrase":Charlatan.Company.catchPhrase(),
+ "bs":Charlatan.Company.bs(),
},
};
};
View
10 package.json
@@ -1,18 +1,18 @@
{
- "name" : "FakerExt",
+ "name" : "Charlatan",
"description" : "A library for generating fake data such as names, addresses, and phone numbers.",
"version" : "0.0.0",
"keywords" : ["faker", "dummy", "debug"],
- "homepage" : "https://github.com/shkuropat/FakerExt",
+ "homepage" : "https://github.com/shkuropat/Charlatan",
"author" : "Eugene Shkuropat <e.shkuropat@gmail.com>",
"repository" : {
"type" : "git",
"url" : "http://github.com/Marak/Faker.js.git"
},
- "bugs" : { "url": "https://github.com/shkuropat/FakerExt/issues" },
- "license" : { "type": "MIT", "url": "https://github.com/shkuropat/FakerExt/blob/master/LICENSE" },
- "repository" : { "type": "git", "url": "git://github.com/shkuropat/FakerExt.git" },
+ "bugs" : { "url": "https://github.com/shkuropat/Charlatan/issues" },
+ "license" : { "type": "MIT", "url": "https://github.com/shkuropat/Charlatan/blob/master/LICENSE" },
+ "repository" : { "type": "git", "url": "git://github.com/shkuropat/Charlatan.git" },
"main" : "./index.js",
"engines" : { "node": ">= 0.6.0" }
Please sign in to comment.
Something went wrong with that request. Please try again.