npm.io
2.0.3 • Published 2 years agoCLI

gemini-fetch-cjs

Licence
AGPL-3.0
Version
2.0.3
Deps
2
Size
37 kB
Vulns
0
Weekly
0

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/

Keywords