No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mauve Signweaver 59e34d5eca 2.1.1
2025-05-06 15:18:28 -04:00
.gitignore Initial commit 2020-08-17 17:55:07 -04:00
bin.js Update to ESM 2023-01-12 03:25:28 -03:00
index.js fix: Clean up prompt form style 2025-05-06 15:18:21 -04:00
LICENSE Initial commit 2020-08-17 17:55:07 -04:00
package.json 2.1.1 2025-05-06 15:18:28 -04:00
README.md Initial working version 2020-08-17 21:32:13 -04:00
test.js feat: show HTML form when servers prompt for input 2025-05-06 14:50:17 -04:00

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/