summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/location/country.md
blob: 1617ad7a24bc2bfa085e71fb3ccbde967176c64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# country

```js
// usage
chance.country()
chance.country({ full: true })
```

Return a random country.

```js
chance.country();
=> 'LT'
```

By default, returns only the 2 letter ISO 3166-1 code for the country.

Optionally specify that it ought to return a full country name.

```js
chance.country({ full: true });
=> 'Venezuela'
```