Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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-fetch

gemini-fetch gemini://gemini.circumlunar.space/

# Or use npx

npx gemini-fetch gemini://gemini.circumlunar.space/
```