https://github.com/jamen/callbag-reddit
https://github.com/jamen/callbag-reddit
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jamen/callbag-reddit
- Owner: jamen
- License: mit
- Created: 2018-03-22T07:08:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T07:08:44.000Z (about 8 years ago)
- Last Synced: 2025-09-23T11:12:23.376Z (9 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# callbag-reddit
Reddit push streams for [Callbag](https://github.com/callbag/callbag).
## Install
```sh
npm i callbag-reddit
```
## Usage
### `fromReddit(r)`
Streams the pages of a subreddit.
```js
const { pipe, map, forEach } = require('callbag-basics')
const { fromReddit } = require('callbag-reddit')
pipe(
fromReddit('midlyinteresting'),
map(x => x.data.url),
forEach(console.log)
)
```