SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
# street
|
||||
|
||||
```js
|
||||
// usage
|
||||
chance.street()
|
||||
chance.street({country:it})
|
||||
```
|
||||
|
||||
Generate a random street
|
||||
|
||||
```js
|
||||
chance.street();
|
||||
=> 'Tesca Circle'
|
||||
```
|
||||
|
||||
Optionally mandate that it returns a short suffix
|
||||
|
||||
```js
|
||||
chance.street({short_suffix: true});
|
||||
=> 'Jiled St'
|
||||
```
|
||||
|
||||
Optionally specify the number of syllables used to generate the street name
|
||||
|
||||
```js
|
||||
chance.street({syllables: 8});
|
||||
=> 'Teniefitinusewjircor Junction'
|
||||
```
|
||||
|
||||
Optionally specify a country to localize street prefixes
|
||||
|
||||
```js
|
||||
chance.street({country: 'it'});
|
||||
=> 'Via Nefba'
|
||||
```
|
||||
|
||||
Note, currently support for country is limited to: `'us', 'it'`.
|
||||
Reference in new issue
Block a user