Skip to content
/ twas Public

🕰 Tiny (280B) relative time string function (eg: "3 seconds ago")

License

Notifications You must be signed in to change notification settings

vutran/twas

Repository files navigation

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

About

🕰 Tiny (280B) relative time string function (eg: "3 seconds ago")

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published