summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/web/domain.md
blob: 92aa11ad53974c10fa60fe56eea5033638ab02ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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'
```