Back to Explore

sindresorhus/parse-ms

GitHub
1 watchersOpen source

Last release: 1/7/2024

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 upstream repo for sindresorhus/parse-ms shows recent activity, with the latest tagged update v4.0.0 on 2024-01-07 and the last upstream push on 2024-05-04, which suggests the project is actively maintained.
  • The update cadence appears low, with major updates in 2019 (v2.1.0), 2021 (v3.0.0), and 2024 (v4.0.0), indicating periodic evolution rather than frequent changes.

AI summary generated Today

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

Recent updates

  • v4.0.0

    1/7/2024

    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

    4/9/2021

    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

    4/24/2019

    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