Tiny millisecond conversion utility
Ms is a tiny utility package for converting between various time formats and milliseconds, built by Vercel. It accepts time strings in multiple formats (such as '2 days', '1h', or '5s') and converts them to millisecond values, or converts millisecond numbers back to human-readable strings. The package is written in TypeScript with full type definitions, including Template Literal Types for enhanced type safety, and works across browsers and server runtimes including Node.js, Deno, and Bun, as well as edge runtime environments like Vercel Edge Functions.