0.0.9 • Published 10 months ago

@qgisk/simple-reddit-client v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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.0.9

10 months ago

0.0.8

1 year ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago