
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@types/humanize-duration
Advanced tools
TypeScript definitions for humanize-duration
npm install --save @types/humanize-duration
This package contains type definitions for humanize-duration (https://github.com/EvanHahn/HumanizeDuration.js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/humanize-duration.
These definitions were written by Piotr Błażejewicz, and Evan Hahn.
Moment.js is a widely-used library for parsing, validating, manipulating, and formatting dates. It includes duration formatting capabilities similar to humanize-duration but offers a broader range of date and time manipulation features.
date-fns is a modern JavaScript date utility library that provides a variety of functions for working with dates, including formatting durations. It is modular and tree-shakeable, making it a lightweight alternative to Moment.js.
Luxon is a library for working with dates and times in JavaScript. It is a modern alternative to Moment.js and includes features for formatting durations, along with extensive support for time zones and internationalization.
FAQs
TypeScript definitions for humanize-duration
The npm package @types/humanize-duration receives a total of 414,050 weekly downloads. As such, @types/humanize-duration popularity was classified as popular.
We found that @types/humanize-duration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.