JSPM

@slrmyapi/countryapi

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q34627F
  • License ISC

Country API untuk kegunaan semua!

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

    👨‍💻 Developer Info

    GitHub NPM WhatsApp Instagram