mirror of
https://github.com/RangerMauve/gemini-fetch
synced 2026-07-22 22:03:43 +00:00
No description
- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| bin.js | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| test.js | ||
gemini-fetch
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript
Usage
npm i --save gemini-fetch
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 -g gemini-fetch
gemini-fetch gemini://gemini.circumlunar.space/
# Or use npx
npx gemini-fetch gemini://gemini.circumlunar.space/