a method to format the span between a time and now

npm install time-format
1 downloads in the last week
4 downloads in the last month

Time Format

Build Status

A simple method to format the difference between two timestamps.

For more complex cases and flexibility use libraries like Moment.js.


$ npm install time-format


require('time-format').span(date, now = new Date())
npm loves you