Skip to content

Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript

License

Notifications You must be signed in to change notification settings

RangerMauve/gemini-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published