mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-08 20:15:58 +08:00
23 lines
299 B
Markdown
23 lines
299 B
Markdown
# 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'
|
|
```
|
|
|