Back to Explore

sindresorhus/parse-ms

GitHub
1 updates · last 90 daysOpen 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 appears actively maintained, with an upstream push and v5.0.0 update on 2026-11-02.
  • Updates are infrequent and irregular, with notable version updates in 2021, 2024, and 2026 rather than a steady cadence.

AI summary generated

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

Recent updates

  • v5.0.0

    parse-ms v5.0.0 raises the minimum supported Node.js version to 22 and improves precision when calculating sub-day and sub-millisecond components. The runtime implementation has no changed function signature or exported type, but it changes results for non-finite inputs, and the repository also updates its security reporting and development tooling.

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