intervals-for-humans
Convert human-readable intervals like '1h' or '5m' or '15s' into milliseconds.
Installation
npm install intervals-for-humans
Usage
const i4h = console // 1console // 10000console // 300000console // 7200000console // 86400000console // 1814400000console // false
Testing
npm run test
Author
👤 Ian M. Goldstein
- Github: @iamigo
Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
⭐️ if this project helped you!
License
Copyright © 2020 Ian M. Goldstein.
This project is MIT licensed.