Javascript module for outputting relative dates. Tested platforms: Node, Firefox 3.6, Chromium 8.0
Install
npm install relative-date
Usage
On browsers:
<script src="relative-date.js"></script><script> ; ; ;</script>
On a CommonJS compliant environment:
> var relativeDate = ;> 'just now'> '12 minutes ago'> '41 years ago'
Testing
node test/node.js || test/browser.html