aboutsummaryrefslogtreecommitdiff
path: root/lib/address.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-438/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-95/+121
2021-08-18spelling: circularJosh Soref1-1/+1
Signed-off-by: Josh Soref <[email protected]>
2021-03-22Fixes linting for address.jsMarak1-105/+105
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-6/+6
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-02-17Use randmly cityname when availableMorgan Denis1-4/+5
2021-02-12Allow using real city name when availableMorgan Denis1-0/+13
2020-09-06fix spelling & formatting mistakesSebastian Pettersson1-3/+3
2020-08-25Merge branch 'master' into country-code-alpha-3Marak1-0/+8
2020-08-18add time_zonemkg01-0/+8
2019-06-20feat: added support for generating a random alpha-3 country codekaykhan1-1/+12
2018-10-28[api] [minor] Remove reference to `this`Marak1-1/+1
2018-10-27[api] [fix] [minor] Remove `this` scope #376Marak1-1/+1
2018-09-26Support variable precision for latitude and longitudeMahmoud Gamal1-8/+22
2018-09-23Merge pull request #600 from karllhughes/400-zipcode-by-state-1Marak1-0/+18
Added `address.postcode_by_state`
2018-09-22Merged `addess.nearbyGPSCoordinate` methodMarak1-0/+52
2018-01-20refactors zipCodeByState to match correct zip code ranges with testsWilly Raedy1-5/+14
2018-01-20Adding test for zipcode by state, basic functionalityKarl Hughes1-0/+9
2017-10-22add direction abbr options with testsTyler1-12/+28
2017-10-21add missing colonTyler1-2/+2
2017-10-21add direction generator and testTyler1-3/+18
2017-10-21add unit tests and schema desciptionsTyler1-5/+14
2017-10-21add ordinal and cardinal direction generator to address namespaceTyler1-3/+24
2017-01-26Delete ES6Andres Silva1-2/+6
2017-01-26Add max, min for latitude and longitudeAndres Silva1-4/+8
2016-05-06Using different heuristic for producing a random GPS coordinateVivek Seth1-8/+6
this approach will not result in a uniform distribution, but will instead concentrate points in the center.
2016-05-06Ensure longitude points are within range [-180, 180]Vivek Seth1-0/+7
2016-05-06Fixed bug where variables were being leaked to global namespaceVivek Seth1-4/+4
2016-05-05If no input params return random coordinateVivek Seth1-1/+4
2016-05-05Use term 'coordinate' instead of 'location'Vivek Seth1-7/+7
2016-05-05Added address.nearbyLocation() methodVivek Seth1-0/+44
Returns a random GPS coordinate located within a distance of the given GPS coordinate
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-0/+97
Descriptions are taken from existing comments if available. The address module already has some new sample descriptions.
2015-09-14No space before citySuffix in city namePat Tullmann1-3/+3
The citySuffix is a real word suffix (like "ton" or "burgh") so there should not be whitespace before it. (The cityPrefix is a separate word (like "Lake" or "North"), so still needs whitespace.
2015-07-30Only append suffix to streetName if suffix is presentTom Collier1-2/+7
When streetSuffix returns an empty string, do not append a space to the end of the name part of streetName. With the prior behavior, occasionally, this streetName would return something like "Ashley " (notice the trailing space), which is undesirable in many circumstances.
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-11/+11
Set default max random number to 99999. Added default arguments to some methods.
2015-07-08When the locales were split out (commit: ↵portse1-11/+11
760e50ff2d04a95c990aff98ab84a6c17fb3854c), the en_CA locale lost its zipFormat definition added in PR #173. * Reverted back to simply using the postcode definition. * Updated zipCode function to use that definition for the locale. * Ensure en_CA locale has a postcode definition file.
2015-07-08[refactor] [major] Adds incremental browser builds. Switch to using ↵Marak1-119/+121
prototype for internal API. Previous usage of `module.parent` is not acceptable. Locale information is now passed into Faker constructor. Closes #125
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-1/+1
the default behavior of requiring all locale data. #125 #167
2015-07-07[fix] [minor] Off by 1 errorMarak1-2/+1
2015-07-06[merge] Canadian zip codesMarak1-2/+11
2015-07-06[merge] country_code branchMarak1-1/+5
2015-07-05[merge] Add basic Ukrainian supportMarak1-1/+1
2015-07-05[merge] [api] Added missing street prefix methodMarak1-0/+4
2015-07-04[api] [refactor] Replaced switch / cases and string concats with Faker.fake ↵Marak1-18/+17
method. #199
2015-06-27Add basic Ukrainian support and bugfixesAnatoliy Yevpack1-1/+1
2015-02-17Implemented proper formatting of Canadian postal codes (remains ↵portse1-2/+11
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.
2014-10-27adds ability to get random country code and tests.FotoVerite1-0/+4
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