← All repos

ms.js

Tiny millisecond conversion utility

conversionmillisecondsutility
Browse cluster: Node.js HTTP utilities & middleware
190commits
43contributors
1languages

Tech stack & purpose

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.

Languages

TypeScript
100.0%

Contributors (top 30 of 43)