twas
Tiny (280B) relative time string function (eg: "3 seconds ago")
Install
$ npm i -S twas
Usage
import twas from 'twas';
console.log(twas(Date.now() - (5 * 1000));
// -> 5 seconds ago
License
MIT © Vu Tran
Tiny (280B) relative time string function (eg: "3 seconds ago")
$ npm i -S twas
import twas from 'twas';
console.log(twas(Date.now() - (5 * 1000));
// -> 5 seconds ago
MIT © Vu Tran
npm i twas
176
2.1.3
MIT
10.4 kB
10