1.0.3 • Published 2 years ago
getcountry-metadata v1.0.3
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
}
*/