0.2.0 • Published 9 years ago
@mockingbot/timeago v0.2.0
timeago
A wrapper for Ryan McGeary's jQuery plugin.

#install
npm install timeago#usage
var timeago = require('timeago');
var pretty = timeago(+new Date());
console.log(pretty); // just nowYou can also use it in Express app templates:
var app = express.createServer();
app.helpers({
timeago: require('timeago')
});<div class="timeago"><%- timeago(widget.created) %></div>0.2.0
9 years ago