ms
Tiny millisecond conversion utility
Use this package to easily convert various time formats to milliseconds. Works both in Node.js and in the browser. If a number is supplied to ms, a string with a unit is returned. If a string that contains the number is supplied, it returns it as a number (e.g.: it returns 100 for '100'). If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned. For added safety, we're using Template Literal Types (added in TypeScript 4.1). This ensures that you...