getcountry-metadata
v1.0.3
Published
use this package to get country and its related data such as states, languages, phone code etc.
Downloads
20
Maintainers
Readme
hello, this is my first packages
use this package to get country and its related data such as states, languages, phone code etc.
import { getCountry } from 'getcountry-metadata'
const country = getCountry('ID');
/*
{
"iso2": "ID",
"name": "Indonesia",
"phone_code": "62",
...etc
}
*/