You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't made many public-facing issues before. If it's hard to figure out what I'm requesting, please let me know! 😄
When creating fake addresses, I may not want values of 123 Fake Street or 123 Fake.
Instead, I might specifically want/need:
123 Fake St
Or, 123 Fake St.
Suggested solution
Some kind of modification to streetAddress(), or street(), that allows for abbreviated suffixes would be great.
Calling faker.location.streetAddress({ useSuffixAbbreviate: true }) returns something like 123 Fake St
And if it's set to ({ useSuffixAbbreviate: false }), it could return 123 Fake St. instead.
This would apply to multiple street name suffixes, such as:
Avenue = Ave
Center = Ctr
Circle = Cir
Street = St
Etc.
An alternative might be a new listing under location, called streetSuffix() would work, if its easier to implement.
It would just be good to have some way to get street addresses, with abbreviated suffixes both with, and without periods.
Additional context
Reference material
A full list of US street suffixes and standardized abbreviations are available here via USPS.
For cases where multiple listings are possible (Example: AVENUE = AV, AVE, AVN, etc.) the Postal Service Standard Suffix Abbreviation (should probably?) win any tie breakers. The logic being that the work being done will presumably in some way relate to mailing or legal addresses, so following USPS standards would be generally preferable for the sake of standardization.
Clear and concise description of the problem
Note
I haven't made many public-facing issues before. If it's hard to figure out what I'm requesting, please let me know! 😄
When creating fake addresses, I may not want values of
123 Fake Streetor123 Fake.Instead, I might specifically want/need:
123 Fake St123 Fake St.Suggested solution
Some kind of modification to
streetAddress(), orstreet(), that allows for abbreviated suffixes would be great.Calling
faker.location.streetAddress({ useSuffixAbbreviate: true })returns something like123 Fake StAnd if it's set to
({ useSuffixAbbreviate: false }), it could return123 Fake St.instead.This would apply to multiple street name suffixes, such as:
Avenue = Ave
Center = Ctr
Circle = Cir
Street = St
Etc.
So examples would look something like:
Alternative
An alternative might be a new listing under
location, calledstreetSuffix()would work, if its easier to implement.It would just be good to have some way to get street addresses, with abbreviated suffixes both with, and without periods.
Additional context
Reference material
A full list of US street suffixes and standardized abbreviations are available here via USPS.
For cases where multiple listings are possible (Example: AVENUE = AV, AVE, AVN, etc.) the Postal Service Standard Suffix Abbreviation (should probably?) win any tie breakers. The logic being that the work being done will presumably in some way relate to mailing or legal addresses, so following USPS standards would be generally preferable for the sake of standardization.