Use this package to easily convert various time formats to milliseconds.
// 172800000 // 86400000 // 36000000 // 9000000 // 7200000 // 60000 // 5000 // 31557600000 // 100
// "1m" // "2m" // "10h"
// "1 minute" // "2 minutes" // "10 hours"
ms
, a string with a unit is returned.100
for '100'
).npm link
npm link ms
. Instead of the default one from npm, node will now use your clone of ms!As always, you can run the tests using: npm test