@devx./timesince

JavaScript NPM package to calculate the time difference between two dates.

timesince.js

友好时间js,用于返回人类可读的“几分钟前”字符串