Country Code

ISO 3166-1 alpha-2

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greasyfork.org/scripts/465957/1188611/Country%20Code.js

Skapare
schimon
Version
23.04
Skapad
2023-05-10
Uppdaterad
2023-05-10
Licens
MIT

Usage:

countryCode["DE"] // "Germany"

Example:

nationCode = "de"
countryCode[nationCode] // undefined

Solution:

nationCode = nationCode.toUpperCase()
countryCode[nationCode] // "Germany"