1 # ms.js: miliseconds conversion utility
4 ms('2 days') // 172800000
7 ms('2.5 hrs') // 9000000
17 ms(ms('10 hours')) // "10h"
21 ms(60000, { long: true }) // "1 minute"
22 ms(2 * 60000, { long: true }) // "2 minutes"
23 ms(ms('10 hours'), { long: true }) // "10 hours"
26 - Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](http://nodejs.org/download).
27 - If a number is supplied to `ms`, a string with a unit is returned.
28 - If a string that contains the number is supplied, it returns it as
29 a number (e.g: it returns `100` for `'100'`).
30 - If you pass a string with a number and a valid unit, the number of
31 equivalent ms is returned.