UNPKG
countries-name
Version:
latest (1.0.0)
1.0.0
Get name by country code.
github.com/cc258/countries-name
cc258/countries-name
countries-name
/
README.md
24 lines
(14 loc)
•
270 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# countries-name
Get name
by
country code.
# Install
```shell $ npm i countries-name ```
# Simple
```js import { cName }
from
"countries-name"
; console.log(cName(
"cn"
));
// China
console.log(cName([
"CN"
,
"Fr"
,
"FRA"
]));
// ['China', 'France']
```
# License
MIT