bundle/roast
date-fns@4.2.1
new
file no. 001 / npm ▍weigh-in

date-fns TS

Modern JavaScript date utility library

version 4.2.1 · entry index.js · subpaths 12
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 entry
    20%
    15.10 kB br
    · 70.10 kB min
  • ./locale
    100%
    76.68 kB br
    · 600.2 kB min
  • ./fp
    22%
    16.95 kB br
    · 78.53 kB min
  • ./addISOWeekYears
    1%
    643 B br
    · 1.52 kB min
  • ./add
    1%
    405 B br
    · 791 B min
  • ./addBusinessDays
    0%
    372 B br
    · 772 B min
  • ./constants
    0%
    317 B br
    · 690 B min
  • ./addQuarters
    0%
    294 B br
    · 537 B min
  • ./addMonths
    0%
    284 B br
    · 499 B min
  • ./addDays
    0%
    222 B br
    · 362 B min
  • ./addHours
    0%
    204 B br
    · 348 B min
  • ./addMinutes
    0%
    203 B br
    · 339 B min
  • ./addMilliseconds
    0%
    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.