Package
time-diff
Returns the formatted, high-resolution time difference between `start` and `end` times.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 20.1k
- -41% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 4
- Direct, from package.json
- Last release
- 10 years ago
- v0.3.1
- GitHub stars
- 17
- 0 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
20,140 downloads last week, 97,561 in the last month. The 12-month change of -41% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 0.3.1, 1 May 201610 years ago
- First published
- -
- Last push to GitHub
- 1 May 20163,799 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 0
- Dependents on npm
- 12
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=0.10.0
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (4)
is-numberlog-utilspretty-timeextend-shallow
npm install time-diff- jsDelivr
https://cdn.jsdelivr.net/npm/time-diff@0.3.1/ - unpkg
https://unpkg.com/time-diff@0.3.1/ - esm.sh
https://esm.sh/time-diff@0.3.1
Indexability: Indexed.