parse-ms is a JavaScript utility for parsing a millisecond value into a structured object with fields for days, hours, minutes, seconds, milliseconds, microseconds, and nanoseconds. It can take both normal numbers and BigInt inputs, making it useful when you need to break down durations for display or further processing.
Project status
- The repository appears quiet rather than actively maintained, with the last recorded upstream push on 2024-05-04 and the most recent listed update (v4.0.0) on 2024-01-07, which is more than two years ago relative to 2026-09-10.
- Update cadence looks low and sporadic, with major updates in 2019 (v2.1.0), 2021 (v3.0.0), and 2024 (v4.0.0), and no newer updates shown since v4.0.0.
AI summary generated
Recent updates
v4.0.0
v4.0.0 introduces BigInt support and updates the TypeScript types to allow parsing millisecond values as either number or bigint. It also tightens runtime validation for numeric edge cases and includes the documented fix for NaN microseconds. The release targets Node.js 18 as the minimum supported version.
BreakingFeaturesv3.0.0
v3.0.0 makes parse-ms a pure ESM package and raises the minimum supported Node.js version to 12. The code changes also adjust the TypeScript surface area to align with ESM usage and update the project tooling/CI.
Breakingv2.1.0
Version v2.1.0 adds TypeScript definitions to the project. This is intended to improve TypeScript developer experience by providing typings for the library’s API.
Features