# vercel/ms

Tiny millisecond conversion utility

Repository: https://github.com/vercel/ms
Canonical: https://ross.abutalabs.com/products/ms
Homepage: https://npmjs.com/ms
Language: TypeScript
License: MIT
License Family: permissive
Topics: milliseconds, conversion, utility
Last push: 2026-05-20T22:24:50+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 5292, "days_push": 105, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5545, forks 328 (observed 2026-08-28T04:09:22.253636+00:00)

## What it is
A tiny TypeScript utility for converting human-readable time strings like '2 days' to milliseconds and back. It supports many unit aliases, negative values, and strict type-level parsing.

## Use cases
- convert '2 days' to milliseconds
- format milliseconds as human-readable duration
- parse duration strings in config files
- convert time units in Node.js scripts
- humanize cache TTL values

## When to choose
- you need a tiny, dependency-free duration parser/formatter
- you want TypeScript-safe duration string parsing
- you need it to run in browsers, Node, Deno, Bun, or edge runtimes

## When to avoid
- you need full-featured duration libraries with arithmetic or localization
- you need durations beyond years or calendar-accurate month/year math

## Facets
- artifact type: library
- maturity: stable
- function: date-time, parser, serialization
- domain: developer-tools, cross-platform
- platform: bun, browser, cross-platform
- tags: milliseconds, time-conversion, typescript, utility, nodejs, deno

## Member repositories
- vercel/ms (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:22.253636+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:41.247488+00:00, confidence not recorded.
  - readme: https://github.com/vercel/ms (fetched 2026-08-28T04:09:22.253636+00:00, sha 4777b7a4da0c)
  - registry_npm: https://registry.npmjs.org/ms (fetched 2026-08-29T08:51:10.169655+00:00, sha 75e4172a6ab0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
