weather
Script
v1
Fork
1
2
3
4
5
6
7
import
{
fetch
}
from
"https://esm.town/v/std/fetch"
;
export
let
weather
=
async
(
place
:
string
)
=>
{
const
req
=
await
fetch
(
`https://wttr.in/
${
place
}
?format=j1`
)
;
const
res
=
await
req
.
json
(
)
;
return
res
;
}
;