Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

ts-wrapper

0.1.1 • Public • Published

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>

Keywords

none

Install

npm i ts-wrapper

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar