gemini-fetch-cjs
v2.0.3
Published
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript (in a non-user-hostile module format!)
Downloads
10
Readme
gemini-fetch-cjs
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript
Usage
npm i gemini-fetch-cjs
const fetch = require('gemini-fetch')({
// Opts from https://github.com/derhuerst/gemini#api
followRedirects: true,
useClientCerts: false
})
const response = await fetch('gemini://gemini.circumlunar.space/')
console.log(await response.text())
CLI
npm i gemini-fetch-cjs
npx gemini-fetch gemini://gemini.circumlunar.space/