0.1.0 • Published 11 months ago

@qgisk/simple-reddit-client v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

simple-reddit-client

npm version npm downloads

Install

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 Demian

0.1.0

11 months ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago