Files: cdcccc55e2a0881ced884e834c3ebda3fd1e9ceb / modules / timestamp.js
187 bytesRaw
1 | var h = require('hyperscript') |
2 | var moment = require('moment') |
3 | |
4 | exports.message_meta = function (msg) { |
5 | return h('a.enter', {href: '#'+msg.key}, moment(msg.value.timestamp).fromNow()) |
6 | } |
7 |
Built with git-ssb-web