LarryBattle/Ratio.js — pull request #12 by shesek (2012-10-21 23:17:21+00:00)
Title: Fix for npm support

In order to export a single object, `module.exports` must be set directly.

Assigning it to a different variable and writing to it wouldn't work (as there are no pointers in JavaScript).

In environments who doesn't have the `module` object, the only way is to assign the module to a property of the `exports` object.