user-friendly-date
Shows the amount of time between two dates in a user-friendly way.
Usage
Install the package...
$ npm i user-friendly-date --save
...then...
const userFriendlyDate = ; // or import userFriendlyDate from 'user-friendly-date // -> Just now // five seconds ago// -> Five seconds ago // the day before yesterday// -> About 2 days ago
Hope this package helps you!
Found a bug? Open an issue, or ping me on Discord: Vehmloewff#0714.