fetchRSS
Script
v12
Fork
1
2
3
4
5
6
7
import
{
parseXML
}
from
"https://esm.town/v/stevekrouse/parseXML"
;
import
{
fetchText
}
from
"https://esm.town/v/stevekrouse/fetchText"
;
export
const
fetchRSS
=
(
url
:
string
)
=>
fetchText
(
url
)
.
then
(
parseXML
)
.
then
(
(
{
rss
}
)
=>
rss
)
;