@capaj/secs

[ms](https://github.com/zeit/ms), but with built in conversion to seconds.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@capaj/secs
001.0.15 years ago5 years agoMinified + gzip package size for @capaj/secs in KB

Readme

secs
ms, but with built in conversion to seconds. Usage is trivial
secs(2 * 24 * 60 * 60)// '2d'
secs(2 * 24 * 60 * 60, {long: true})// '2 days'
secs('2d') // 172800