country-code-npm
is a simple npm package built over country-codes-list
. It provides a convenient way to retrieve country codes using country names.
To install country-code-npm
, simply run:
npm install code-country
const codepackage = require("code-country");
const countries = codepackage();
console.log(countries["india"]);
a simple package for myself built over country-codes-list