# minimalist-subreddit-wrapper

> Minimalistic api wrapper for subreddit posts

Latest version **1.0.4** (published 2017-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install minimalist-subreddit-wrapper
pnpm add minimalist-subreddit-wrapper
yarn add minimalist-subreddit-wrapper
bun add minimalist-subreddit-wrapper
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-05-17 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | shashankanataraj |

## Links

- npm: https://www.npmjs.com/package/minimalist-subreddit-wrapper
- Repository: https://github.com/ShashankaNataraj/minimalist-subreddit-wrapper
- Homepage: https://github.com/ShashankaNataraj/minimalist-subreddit-wrapper#readme
- Issues: https://github.com/ShashankaNataraj/minimalist-subreddit-wrapper/issues
- npm.io page: https://npm.io/package/minimalist-subreddit-wrapper

## Dependencies (1)

- [got](https://npm.io/package/got.md) ^6.7.1

## Recent versions

- 1.0.4 (latest) — 2017-05-17
- 1.0.3 — 2017-05-16
- 1.0.1 — 2017-05-15
- 1.0.0 — 2017-05-15

## README

# minimalist-subreddit-wrapper
Minimalistic api wrapper for:

1. Getting a list of posts on a subreddit
2. Paging through the list of posts

#### Usage
###### Get posts on a subreddit
```
let minimalistSubredditWrapper = require("minimalist-subreddit-wrapper")
let r = new redditWrapper('<Sub reddit name>');
r.getsubredditPosts().then(response =>{
     console.log(response.body);
});
```
###### Get next page
```
r.pageNext().then(response =>{
 console.log(response.body);
});
 ```
###### Get previous page
```
r.pagePrevious().then(response=>{
    console.log(response.body);
})
```
###### Get a page when you know the start and end post ids
```
r.page(true, 'ab92o2p', 'u5u6i4p').then(response=>{
    console.log(response.body);
});
```

---
_Source: https://npm.io/package/minimalist-subreddit-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
