Country Code

ISO 3166-1 alpha-2

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/465957/1188611/Country%20Code.js

Autor
Schimon
Version
23.04
Erstellt am
10.05.2023
Letzte Aktualisierung
10.05.2023
Größe
6,16 KB
Lizenz
MIT

Usage:

countryCode["DE"] // "Germany"

Example:

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

Solution:

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