jonahsnider / convert

The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript.
https://convert.js.org
MIT License
125 stars 18 forks source link

use 'm' for minutes #659

Closed itzTheMeow closed 6 months ago

itzTheMeow commented 6 months ago

Is there a way to use m for minutes with the ms shorthand utility? I see m is used for meters currently but its also commonly used for minutes. (even in the ms package)

jonahsnider commented 6 months ago

It might be possible to add in special behavior when it seems like you're converting time (or using ms()) but use the unit m. I'll play around with some ideas and update here if I get something working.

itzTheMeow commented 6 months ago

much appreciated!