Using pretty-ms vice-versa?
goloroden opened this issue · 2 comments
goloroden commented
Is it possible (i.e., planned?) to support calculating milliseconds the other way round, such as:
'5s' => 5000
'1m 2s' => 62000
sindresorhus commented
Nope, should be a separate module. I haven't needed that, so I haven't made it. Feel free ;)
goloroden commented
Haha, okay :-))
I now found parse-duration which does the job.
Anyway, thanks for your fast reply :-))