README
ts-wrapper
Ultra lightweight timeStamp wrapper by @estebanrfp ts-wrapper.
install
npm install ts-wrapper
usage
var tswrapper = require('ts-wrapper');
var timestamp = tswrapper(+new Date());
console.log(timestamp); // just now
You can also use it in Express app templates:
var app = express.createServer();
app.helpers({
tswrapper: require('ts-wrapper')
});
<div class="tswrapper"><%- ts-wrapper(data.timestamp) %></div>