@capaj/secs

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@capaj/secs
001.0.14 years ago4 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.