aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2015-02-17More readable gender choosingMarat Dyatko1-3/+9
2015-02-17Russian names have no prefixes and suffixesMarat Dyatko1-0/+2
2015-02-17Support gender in namesMarat Dyatko1-12/+22
2015-02-17Implemented proper formatting of Canadian postal codes (remains ↵portse4-6/+34
address.zipCode in the API) when locale is set to en_CA. address.zipCode also now accepts a zip format string, so that a user can specifically specify the format they wish to see. If this is not passed in, a locale based zip format string is used. This will keep the concerns of zipCode formatting specific to the locales.
2015-02-16Updated en_CA locale file to reflect corrected official abbreviation for Yukon.portse1-1/+1
2015-01-25Update nl.jsJoshua Thijssen1-2/+3
A few small simple additions and fixes for the Netherlands
2015-01-25added protocol() and url()Daniel Mills1-0/+9
2015-01-18Remove duplicate city in georgianLevan Velijanashvili1-3/+0
2015-01-18Added some more data to georgian localeLevan Velijanashvili1-2/+43
address (city_prefix, city_suffix, city), company (prefix, suffix, name) and changed street name prefix to suffix
2015-01-18Require georgian in locales.jsLevan Velijanashvili1-0/+1
2015-01-18Missing newline at the endLevan Velijanashvili1-1/+1
2015-01-18Georgian locale fixesLevan Velijanashvili1-7/+5
2015-01-18Add georgian phone numbersLevan Velijanashvili1-0/+37
2015-01-18Add georgian internetLevan Velijanashvili1-0/+17
2015-01-18Add georgian addressesLevan Velijanashvili1-0/+857
2015-01-18Add georgian last names and job titlesLevan Velijanashvili1-0/+247
2015-01-18Add georgian localeLevan Velijanashvili1-0/+393
separator and name.first_name
2015-01-07Merge pull request #152 from jdrew1303/feature/uuid_generatorMarak1-0/+10
[api] Adds fake uuid generator
2014-12-22Added function to generate UUIDJames Drew1-0/+10
2014-12-16update documentation of array_elementAndreas Böhrnsen1-1/+1
2014-12-09Add new jobTitle function to name object.JKillian1-0/+20
I had to make a few concessions when doing this. Ideally I would have added this function under the 'company' module, but I chose to add it to the 'name' object instead, as the data happened to already exist in the locale files under 'name.title'. However, I felt that the field names in the locale files were confusing, so their wrappers in the name module are renamed for clarity. For example, faker.name.jobArea() returns a random element from locale.name.title.level. In my opinion, 'jobArea' was a much better description of the data than 'level'. Finally, fixed a bug in one unit test which didn't restore a function to its original state after watching it.
2014-12-09Make company suffix function use data from locale instead of hard-coded data.jkillian1-1/+2
2014-11-29Merge pull request #144 from FLamparski/make-valid-coloursMarak1-1/+7
[fix] Ensure that colours are always of the form #RRGGBB
2014-11-28added tests and corrected the number functionMichał Kawalec1-5/+4
2014-11-28precision changes precision and max doesn't modify options objectMichał Kawalec1-10/+13
2014-11-20Fixed male/female split check on findName()Ari Gesher1-2/+2
(It was failing on locales that use a fallback)
2014-11-19Ensure that colours are always of the form #RRGGBBFilip Wieland1-1/+7
2014-11-12Have past, future and recent return random datesDaniel Perez Alvarez1-3/+17
Functions `past` and `future` only returned dates EXACTLY N YEARS before or after the reference date. Function `recent` only returned dates EXACTLY N DAYS before the reference date. For example, `faker.date.past(1)` would return either *Nov 12, 2014*, or *Nov 12, 2013*, but nothing in-between. Also, now you can call those functions without parameter, and N will take the default value of `1`.
2014-10-27adds ability to get random country code and tests.FotoVerite1-0/+4
2014-10-21[fix] ru locale now works with name.firstName and name.lastName methods #132Marak1-2/+23
2014-10-09Added missing street prefix methodYann Barraud1-0/+4
Added missing street prefix method
2014-09-22[fix] Rename state_abbr to stateAbbrMarak1-1/+1
2014-09-22[api] [minor] Add back state_abbr.Marak1-0/+4
2014-09-22[fix] Date.past #110Marak1-1/+1
2014-09-22[dist] Updated browser example. Moved browser example into new directory.Marak1-0/+0
2014-09-22[api] [minor] Added default values for more methods. Cleaned up image ↵Marak6-17/+29
module. Use a less specific regex for usernames.
2014-09-22[data] Added locale titlesMarak27-22/+27
2014-09-21[api] Added internet.password method using `password-generator` library.Marak1-0/+9
[dist] Added `password-generator` to vendor Closes #33
2014-09-21[api] Removed tree module. This code should be in a separate project.Marak1-73/+0
2014-09-21[api] Added hacker module. Added default values for all methods. Cleaned up ↵Marak8-14/+76
errant methods. Added mustache helper.
2014-09-17[feature] - add faker for currencyMQuy3-4/+707
2014-09-16[api] Add ability to generate contextual data for user names and emails. #68Marak3-10/+41
2014-09-16[fix] Prevented emails and userNames from including generally unacceptable ↵Tim Oxley1-5/+4
characters such as apostrophes, which occur semi-regularly when Faker generates last names such as "o'hara". Conflicts: Faker.js lib/internet.js
2014-09-15replaced string[index] with charAt - issue 91beastlike1-2/+2
replaced string[index] with charAt; was getting "undefinedundefinedundefinedundefined" when using Faker.PhoneNumber.phoneNumber(); in Internet Explorer 9 (quirks mode)
2014-09-15[api] Require all locales by defaultMarak1-13/+28
2014-09-15[api] [refactor] Removed definitions.js file. All data definitions are now ↵Marak17-1521/+1371
loaded from localized data sets, en is default locale. #116
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak9-202/+179
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-14[api] First pass at adding localization data definitions. #116Marak28-0/+39155
2014-09-13[api] Added Internet.userAgent #16Marak1-1/+6
2014-09-13[api] Added basic financial generators Closes #32Marak3-1/+87
Merge https://github.com/josefsalyer/Faker.js