vercel/ms

Tiny millisecond conversion utility

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 37 minutes ago
Added to GitGenius on September 12th, 2026
Created on March 8th, 2012
Open Issues & Pull Requests: 37 (+0)
GitHub issues: Enabled
Number of forks: 332
Total Stargazers: 5,548 (+0)
Total Subscribers: 79 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 10.5 days
Mean response time: 148.6 days
90th percentile: 577.3 days
Tracked items: 38

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 0% of issues opened in the past year have been closed. Three people close 93% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 533 days
Stale 30+ days: 13
Stale 90+ days: 12

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • major (1)
  • minor (1)
  • question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

ms is a tiny millisecond conversion utility that converts between various time formats and milliseconds.

The tool solves the problem of handling time unit conversions in JavaScript applications. It accepts multiple input formats—numbers with optional units like minutes, hours, days, or written-out time strings—and converts them to milliseconds or vice versa. The conversion logic handles flexible input including case-insensitive units, optional spacing, and fractional values. When given a number, it returns a formatted string with a unit; when given a string with a unit, it returns the numeric millisecond equivalent.

The tool suits any JavaScript project needing straightforward time conversions without external dependencies. It works in browsers and server runtimes including Node.js, Deno, and Bun, and is compatible with Edge Runtime environments like Vercel Edge Functions. TypeScript users benefit from Template Literal Types that enforce correct input formats at compile time, with an optional strict parsing mode for additional safety. The package includes separate `parse` and `format` functions for modular usage.

Development activity shows consistent maintenance with automated testing through CI workflows. The project maintains compatibility across multiple JavaScript runtimes and package managers, and includes TypeScript definitions as a core feature rather than an afterthought.