2.0.1 • Published 5 months ago

@slrmyapi/countryapi v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

🌍 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

👨‍💻 Developer Info

2.0.1

5 months ago

2.0.0

5 months ago