hot-ranking

1.0.0 • Public • Published

Reddit Hot Ranking Algorithm Build Status

Calculates score of and item based on reddit hot ranking algorithm.

For Science behind read

http://amix.dk/blog/post/19588

Install

npm install hot-ranking

USAGE

hot(upvotes, downvotes, date)

// Load library
var hot = require("hot-ranking");

// Calculate hotness for an item
console.log( hot(5660, 0, new Date(2015, 5, 23, 0, 55)) ); // => 6633.4438609

Test

npm test

License MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3

Package Sidebar

Install

npm i hot-ranking

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ialex