You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
299 B
23 lines
299 B
3 months ago
|
# domain
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.domain()
|
||
|
chance.domain({tld: 'com'})
|
||
|
```
|
||
|
|
||
|
Return a random domain with a random [tld](#tld).
|
||
|
|
||
|
```js
|
||
|
chance.domain()
|
||
|
=> 'onaro.net'
|
||
|
```
|
||
|
|
||
|
Optionally specify a tld and the domain will be random but the tld will not.
|
||
|
|
||
|
```js
|
||
|
chance.domain({tld: 'ie'})
|
||
|
=> 'gotaujo.ie'
|
||
|
```
|
||
|
|