1.0.3 • Published 2 years ago
test_npm_omar v1.0.3
Test Country Npm
Getting started
Test package that aims to obtain information on international codes and codes of a country
Documentation
Install
npm i test_npm_omar
Functions
countryInformation
const country = require("test_npm_omar");
const code = 593
console.log(country.countryInformation(code))
The expected answer is the following
{
isoNo: '593',
iso2: 'EC',
iso3: 'ECU',
country: 'Ecuador',
country_code: 'EC / ECU'
}
If it does not exist it will return null