Features
Explore
About
Docs
Pricing
Feedback
Log in
Sign up
Log in
Sign Up
usgsSite
Script
v3
Fork
1
2
3
4
5
6
7
8
import
{
fetchXML
}
from
"https://esm.town/v/stevekrouse/fetchXML?v=3"
;
export
async
function
usgsSite
(
site
)
{
const
result
=
await
fetchXML
(
`http://waterservices.usgs.gov/nwis/iv/?site=
${
site
}
`
)
;
return
result
;
}
0
4
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.
Sign up for free
?