use web/fetch
This module implements short wrappers around the Fetch API to fetch text or JSON (GET method).
fetchText
( url
→ text
)Fetch the URL, and return the text
content.
fetchJSON
( url
→ obj
)Fetch the URL, parse it as JSON, and return the resultant object.
docs@04547c7