For work with this library is very simple:
const { getCountry } = require("about-countries")
getCountry("af").then(console.log) // This write in the console informations about afghanistan
For know all countries codes, visit this website: https://countrycode.org/
My api: https://countriesapi.ga