GitShow/vercel/ms
vercel

ms

Tiny millisecond conversion utility

by vercel
conversionmillisecondsutility
Star on GitHubForkWebsitenpm

TypeScript

5.5k stars327 forks42 contributorsQuiet · 2mo agoSince 20122.1.3MIT

Meet the team

See all 42 on GitHub →
leo
leo48 contributions
rauchg
rauchg36 contributions
dimitropoulos
dimitropoulos22 contributions
tj
tj18 contributions
styfle
styfle10 contributions
greenkeeper[bot]Bot
greenkeeper[bot]9 contributions
Swatinem
Swatinem4 contributions
mrmckeb
mrmckeb3 contributions

Languages

View on GitHub →
TypeScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

2 of 6 standards met

Community profile →
62
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 2mo ago
See all on GitHub →
Hashim1999164
Fix parse regex backtrackingOpenPR

Summary Tighten the numeric part of the parse regex to avoid ambiguous digit matching. Add coverage for invalid max-length numeric input returning . Fixes #291. Test plan

Hashim1999164 · 3w ago
sabgamer
chore: add build helperOpenPR

Internal build helper module. No security impact.

sabgamer · 1mo ago
alan747271363-art
Fix parseStrict README exampleOpenPR

Summary Fixes the README example so it passes the function argument instead of the undefined identifier. Validation This is a docs-only change. I also attempted the full test script locally, but this checkout has no installed , so the package test script could not start.

alan747271363-art · 2mo ago

Recent fixes

View closed PRs →
wyf027
perf: precompute time unit constantsMergedPR

Summary Replace runtime multiplication chains with precomputed millisecond literals for , , , , , and Keeps behavior identical while avoiding repeated arithmetic at module load Fixes #271 Test plan [x] — 167 passing

wyf027 · 1mo ago
wyf027
fix(parse): remove ambiguous numeric regex to prevent ReDoSMergedPR

Summary Replace the backtracking-prone numeric capture with Complements the existing 100-character input guard with a safer regex shape Add regression test ensuring long invalid numeric strings parse quickly Fixes #291 Test plan [x]

wyf027 · 1mo ago
wyf027
fix(parse): support scientific notation for format() roundtripMergedPR

Summary Allow to read scientific notation produced by for very large millisecond values. Problem Fixes #284. yields , but returned because the numeric regex only matched plain decimals. Fix Extend the value capture group to accept an optional exponent suffix (). already handles the matched value. Test plan [x] — 170 passed (Node + edge runtime) [x] Scientific notation parse cases (, , , etc.) [x] roundtrip regression

wyf027 · 1mo ago
Structured data for AI agents

Repository: vercel/ms. Description: Tiny millisecond conversion utility Stars: 5545, Forks: 327. Primary language: TypeScript. Languages: TypeScript (100%). License: MIT. Homepage: https://npmjs.com/ms Topics: conversion, milliseconds, utility. Latest release: 2.1.3 (5y ago). Open PRs: 16, open issues: 19. Last activity: 2mo ago. Community health: 62%. Top contributors: leo, rauchg, dimitropoulos, tj, styfle, greenkeeper[bot], Swatinem, mrmckeb, leerob, greenkeeperio-bot and others.

·@ofershap

Replace github.com with gitshow.dev