# @qgisk/simple-reddit-client

> Simple reddit posts client

Latest version **0.1.0** (published 2024-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @qgisk/simple-reddit-client
pnpm add @qgisk/simple-reddit-client
yarn add @qgisk/simple-reddit-client
bun add @qgisk/simple-reddit-client
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2024-08-04 |
| First published | 2022-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Demian |
| Maintainers | qgisk |

## Links

- npm: https://www.npmjs.com/package/@qgisk/simple-reddit-client
- Repository: https://github.com/QGIsK/simple-reddit-client
- Homepage: https://github.com/QGIsK/simple-reddit-client#readme
- Issues: https://github.com/QGIsK/simple-reddit-client/issues
- npm.io page: https://npm.io/package/@qgisk/simple-reddit-client

## Recent versions

- 0.1.0 (latest) — 2024-08-04
- 0.0.9 — 2023-08-18
- 0.0.8 — 2023-05-29
- 0.0.6 — 2022-11-05
- 0.0.5 — 2022-11-05
- 0.0.4 — 2022-11-05
- 0.0.3 — 2022-11-05
- 0.0.2 — 2022-06-09
- 0.0.1 — 2022-05-23

## README

# simple-reddit-client

[![npm version](https://badgen.net/npm/v/@qgisk/simple-reddit-client)](https://npm.im/@qgisk/simple-reddit-client) [![npm downloads](https://badgen.net/npm/dm/@qgisk/simple-reddit-client)](https://npm.im/@qgisk/simple-reddit-client)
## Install

```bash
npm i @qgisk/simple-reddit-client
```

## Usage

```
import fetch from 'cross-fetch'
import RedditClient from '@qgisk/simple-reddit-client'

const Client = new RedditClient({allowNSFW: false, imagesOnly: false, ignoreGiphy: false, limit: 25}, fetch)

const getPicsInfo = await Client.getInfo({page: 'pics', type: 'r'})
const getPictures = await Client.getPosts({pages: 'pics', type: 'r', allowNSFW: false, imagesOnly: true, ignoreGiphy: true, limit: 25, sortType: 'hot'}) // Also accepts after, for pagination

console.log(getPicsInfo, getPictures)
```


[MIT](https://github.com/QGIsK/simple-reddit-client/blob/main/LICENSE) Demian

---
_Source: https://npm.io/package/@qgisk/simple-reddit-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
