Parse complex length strings to a millisecond value
npm install @lolpants/timeparser@lolpants/timeparser. Simply install it with your NPM client of choice.ts
import { parse } from 'timeparser'// Parse
const len = parse('1 minute')
// => 60000
`Check
/test/parse.test.ts` for examples of parsable strings.