twas

2.1.3 • Public • Published

twas

Coveralls branch license

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

Package Sidebar

Install

npm i twas

Weekly Downloads

176

Version

2.1.3

License

MIT

Unpacked Size

10.4 kB

Total Files

10

Last publish

Collaborators

  • vutran