Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RangerMauve/gemini-fetch
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript
https://github.com/RangerMauve/gemini-fetch
Last synced: 3 months ago
JSON representation
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript
- Host: GitHub
- URL: https://github.com/RangerMauve/gemini-fetch
- Owner: RangerMauve
- License: agpl-3.0
- Created: 2020-08-17T21:55:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T20:36:42.000Z (almost 2 years ago)
- Last Synced: 2024-07-05T14:36:03.558Z (4 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 21
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gemini - gemini-fetch - cURL-like CLI for loading content from Gemini URLs. (Clients / Terminal)
README
# gemini-fetch
Load data from the Gemini protocol the way you would fetch from HTTP in JavaScript## Usage
```
npm i --save gemini-fetch
``````js
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-fetchgemini-fetch gemini://gemini.circumlunar.space/
# Or use npx
npx gemini-fetch gemini://gemini.circumlunar.space/
```