ts-wrapper

Ultra lightweight timeStamp wrapper by @estebanrfp ts-wrapper.

Usage no npm install needed!

<script type="module">
  import tsWrapper from 'https://cdn.skypack.dev/ts-wrapper';
</script>

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>