Back to Explore

sindresorhus/parse-ms

GitHub
1 watchersOpen source

Last release:

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 source does not show recent activity, with the last upstream push on 2024-05-04, so it appears quiet or in maintenance mode as of 2026-06-09.
  • Update cadence is low, with notable updates at roughly 2019-04, 2021-04, and 2024-01 (no evidence of further updates since early 2024).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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.

    BreakingFeatures
  • v3.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.

    Breaking
  • v2.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