Skip to content
Formulas for content ranking
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.gitignore
CHANGELOG.md
LICENSE
README.md
commitlint.config.js
jest.config.js
package.json
prettier.config.js
tsconfig.json
tslint.json
yarn.lock

README.md

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

npm i content-ranking

then

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

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

License

Unlicense — public domain.

You can’t perform that action at this time.