aboutsummaryrefslogtreecommitdiff
path: root/lib/index.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-270/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-33/+126
2021-05-19Removed seed call from unit testsAdam Walker1-1/+1
2021-05-19Revert formatting changes to lib/index.js made by prettierAdam Walker1-8/+8
2021-05-19Add remaining methods and libs from feature request.Adam Walker1-2/+1
2021-05-19Initial commit of word.noun and word.verbAdam Walker1-7/+12
2021-03-24Give each faker instance its own random number generatorCharles Lowell1-0/+3
Currently, every Faker instance shares the same random number generator instance which means that to seed one faker instance is to seed them all. This can result in duplicate data being generated all over the place. This just extracts the public API of the mersenne twister found in `vendor/mersenne.js` and creates a single instance of it per faker. This implementation is a tad sub-optimal since calling `seed()` on a faker instance will result in two redundant calls to `mersenne.init_genrand()`: one in `random.js` and the other in `datatype.js`. It would probably be more DRY to create the mersenne instance once in faker and then pass it into to the `Random` and `Datatype` instances, however, this takes the strategy of the smallest possible API change.
2021-03-18perf(system): improve commonFileName, commonFileExt, fileType, directoryPath ↵Christian1-49/+48
performance fixes #822
2021-03-03Issue 1114: new datatypes modulelbuerste1-0/+2
Current status: - moved tests with seeding problem back to random.unit - implemented date method - added datatype module to seed funtion - added tests for date method
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-2/+2
Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning
2021-03-03WIP: issue-1114-datatypes-moduleLBuerstmayr1-0/+3
2021-02-18Fix typoMarak1-1/+1
2021-02-18Merge branch 'master' into use-french-cities-nameMarak1-3/+3
2021-02-17Adds support for binary gender definitionsMarak1-1/+1
2021-02-16adding more datasets to animal moduleRavsCodes201-1/+1
added more common animals and associated tests. Added type for choosing random catagory by name
2021-02-14Merge branch 'master' into use-french-cities-nameMarak1-0/+4
2021-02-12Adds missing `animal` moduleMarak1-1/+1
Removes un-used animal references Fix broken test
2021-02-12adding animal moduleRavsCodes201-0/+4
started with dogs, added a defintion, an array of dogs breeds, and an associated test.
2021-02-12Allow using real city name when availableMorgan Denis1-1/+1
2020-09-06Merge pull request #837 from mrstebo/add-music-fakerMarak1-0/+4
Added the Music module
2020-08-25Merge branch 'master' into country-code-alpha-3Marak1-2/+5
2020-08-18add time_zonemkg01-1/+1
2020-06-10Merge pull request #823 from ashishra0/add-product-descriptionMarak1-1/+1
add random product description generator
2019-10-09Added the Music faker.Steve Atkinson1-0/+4
2019-09-11add random product description generatorAshish Rao1-1/+1
2019-06-20feat: added support for generating a random alpha-3 country codekaykhan1-1/+1
2018-11-12adding unit testsiwalikm1-0/+3
2018-10-28[api] Added vehicle module #555Marak1-0/+4
2018-10-28[api] [refactor] Remove `bindAll` method #376Marak1-26/+16
* Was previously used for `this` scoping issue * Should no longer be needed * Should not cause any issues
2018-10-20resolve conflictTyler1-0/+1
2018-10-20merge with masterTyler1-3/+6
2018-10-14Add locale pt_PTTito Nobre1-1/+1
2018-09-24fix: system.directoryPath and system.filePathSimone Sanfratello1-1/+1
2018-09-23Merge pull request #600 from karllhughes/400-zipcode-by-state-1Marak1-1/+1
Added `address.postcode_by_state`
2018-09-23add git module to libDanielle Adams1-0/+3
2018-01-20Adding test for zipcode by state, basic functionalityKarl Hughes1-1/+1
2017-10-22add direction abbr options with testsTyler1-1/+1
2017-10-21add unit tests and schema desciptionsTyler1-1/+1
2017-10-15add missing semicolonsTyler1-2/+2
2017-10-10add random vehicle option to _definitionsTyler Reichle1-1/+1
2017-10-10add make with model and color generators. additional vin numbersTyler1-1/+1
2017-10-09add vehicle generator and dataTyler1-0/+4
2017-09-08Merge pull request #488 from APIs-guru/masterMarak1-0/+4
[api] Add 'Faker.setLocale' method to solve problem with ES6 import
2017-09-08Merge branch 'creditCard' of https://github.com/zpiman/faker.jsMarak1-1/+1
2017-09-07hacker phrase module extractdhilt1-1/+1
2017-09-03[api] Added 71 additional gender optionsMarak1-1/+1
* Adds new gender options for `en` locality * Updates example page to use gender * Still needs translations for other locales
2017-08-20[api] [minor] [refactor]`faker.unique` into classMarak1-1/+3
2017-08-20[api] First pass at `faker.unique` moduleMarak1-0/+2
* Adds unique value API for use with any method * Using in-memory store for unique values * Provides maxRetries and maxTime options * RE: #466 #245 #477
2017-03-08Add 'setLocale' method to solve problem with ES6 importIvan Goncharov1-0/+4
2017-02-26Merge branch 'Mark/origin' into creditCardJakub Mandula1-18/+29