Skip to content
JS
Package

defu

Recursively assign default properties. Lightweight and Fast!

v6.1.7, 7 Apr 2026MITESM + CommonJSTypes: Bundled
$ npm install defu

Key numbers

As of 25 Sept 2026
Weekly downloads
29.4m
+212% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 months ago
v6.1.7
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 39.3m (25 Aug 2026)Low 7.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

29,410,223 downloads last week, 144,648,010 in the last month. The 12-month change of +212% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
330 in total
Latest version
6.1.7, 7 Apr 20265 months ago
First published
7 Feb 2019
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
3,120

Major versions

  1. v6 first release 6.0.0, 21 Mar 2022
  2. v5 first release 5.0.0, 12 May 2021
  3. v4 first release 4.0.0, 23 Apr 2021
  4. v3 first release 3.0.0, 28 Jul 2020
  5. v2 first release 2.0.0, 19 Apr 2020
  6. v1 first release 1.0.0, 2 Feb 2020
  7. v0 first release 0.0.0, 7 Feb 2019

Recent releases

VersionPublished
6.1.77 Apr 2026
6.1.61 Apr 2026
6.1.51 Apr 2026
6.1.45 Jan 2024
6.1.324 Oct 2023
6.1.224 Jan 2023
6.1.114 Nov 2022
6.1.016 Aug 2022
6.0.116 Aug 2022
6.0.021 Mar 2022
5.0.113 Jan 2022
5.0.012 May 2021
4.0.123 Apr 2021
4.0.023 Apr 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
20 kB
Dependencies (0)
None
npm install defu
  • jsDelivrhttps://cdn.jsdelivr.net/npm/defu@6.1.7/
  • unpkghttps://unpkg.com/defu@6.1.7/
  • esm.shhttps://esm.sh/defu@6.1.7
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.