This commit is contained in:
Nox Sluijtman 2025-01-21 12:14:30 +01:00
parent 5c0904e558
commit 912e68453b
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -5,7 +5,7 @@
let base_url = 'https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1'
def main [target:string = "usd", source:string = "eur"] {
(http get $"($base_url)/currencies/($source).json") | get $source | get $target
$"((http get $"($base_url)/currencies/($source).json") | get $source | get $target)\n"
}
def "main list" [ ] {