gwetch
- fetch
, but for Gopher.
const {gwetch} = require('gwetch');
gwetch('gopher://gopher.floodgap.com').then((res) => {
res.items().then((items) => {
items.forEach((i) => {
console.log(i);
})
})
})
timeout
- connection timeout, in ms. Default is5000
.