▍ file no. 001 / npm ▍weigh-in
date-fns TS
Modern JavaScript date utility library
▍ weighed at
brotli q11 · rolldown + minify
wire weight · brotli
92.48 kB
verdict big
brotli is 14% of minified unpacks 7.1× on the wire
- minified
- 678.8 kB
- saved on the wire
- 586.4 kB
▍field notes
- side effects
- none (tree-shakeable)
- module formats
- ESM + CJS
- exports map
- present
- types
- bundled (own .d.ts)
- peer deps
- none
▍ the roast
AI · freshly written
▍ incoming dispatch · priority: hot
the wire is humming…
- . main entry20%15.10 kB br· 70.10 kB min
- ./
locale100%76.68 kB br· 600.2 kB min - ./
fp22%16.95 kB br· 78.53 kB min - ./
addISOWeekYears1%643 B br· 1.52 kB min - ./
add1%405 B br· 791 B min - ./
addBusinessDays0%372 B br· 772 B min - ./
constants0%317 B br· 690 B min - ./
addQuarters0%294 B br· 537 B min - ./
addMonths0%284 B br· 499 B min - ./
addDays0%222 B br· 362 B min - ./
addHours0%204 B br· 348 B min - ./
addMinutes0%203 B br· 339 B min - ./
addMilliseconds0%195 B br· 316 B min
▍dependencies
deps-free certified standalone
transitive cost
zero.
date-fns ships on its own — no transitive weight, no shared deps to dedupe, no peer pressure. a rare bird.
▍ see also
outbound
▍another case
drop a package
Got a heavier sin to confess? Roast another package — or share this one to make a friend reconsider their dep tree.