@capaj/secs

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

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Nov 15, 2017Nov 15, 2017Minified + 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.