time-format
v0.0.1
Published
a method to format the span between a time and now
Downloads
6
Readme
Time Format
A simple method to format the difference between two timestamps.
For more complex cases and flexibility use libraries like Moment.js.
Installation
$ npm install time-format
API
require('time-format').span(date, now = new Date())