Features
Explore
About
Docs
Pricing
Log in
Sign up
Log in
Sign Up
marcel
1 public val
Joined
January 12, 2023
weather
Script
v4
Fork
1
2
3
4
5
6
import
{
fetch
}
from
"https://esm.town/v/std/fetch"
;
export
const
weather
=
async
(
city
:
string
)
:
Promise
<
unknown
>
=>
{
let
data
=
await
fetch
(
`https://wttr.in/
${
city
}
?format=j1`
)
;
return
data
.
json
(
)
;
}
;
1
20
0
Prev
Next
?