An open API service indexing awesome lists of open source software.

https://github.com/streamich/content-ranking

Formulas for content ranking
https://github.com/streamich/content-ranking

Last synced: 11 months ago
JSON representation

Formulas for content ranking

Awesome Lists containing this project

README

          

# content-ranking

Content ranking formulas.

- `hotReddit` — Reddit's *"hot"* content ranking formula.
- `hotYCombinator` — YCombinator's *"hot"* content ranking formula.
- `bestReddit` — Reddit's *"best"* content ranking formula.
- `controversialReddit` — Reddit's *"controversial"* content ranking formula.

## Usage

```shell
npm i content-ranking
```

then

```js
import {hotReddit, hotYCombinator, bestReddit, controversialReddit} from 'content-ranking';

hotReddit(ups, dows, createdTimeInMilliseconds);
hotYCombinator(ups, createdTimeInMilliseconds);
bestReddit(ups, dows);
controversialReddit(ups, dows);
```

## License

[Unlicense](LICENSE) — public domain.