Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@slrmyapi/countryapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🌍 Country API - SlrmyApi
Country API membolehkan anda mendapatkan maklumat negara berdasarkan kod negara ISO 3166-1 alpha-2 secara langsung dari API.
📦 Pemasangan
npm install @slrmyapi/countryapi📥 Cara Penggunaan
const getCountryInfo = require("@slrmyapi/countryapi");
getCountryInfo("MY").then(console.log);
// Output: { name: 'Malaysia', emoji: '🇲🇾', phoneCode: '+60' }
getCountryInfo("XX").then(console.log);
// Output: { error: 'Gagal mendapatkan data dari API.' }📌 Negara Yang Disokong
API ini mengambil data secara langsung dari : SlrmyApi