nasaAPOD
Script
v6
Fork
1
2
3
4
5
6
7
import
{
fetchJSON
}
from
"https://esm.town/v/stevekrouse/fetchJSON?v=41"
;
// Returns NASA's Astronomy Picture of the Day (APOD)
export
const
nasaAPOD
=
await
fetchJSON
(
"https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY"
)
;
console
.
log
(
nasaAPOD
.
url
)
;
// Forked from @iBrokeit.nasaAPOD