JavaScript utility libraries
Find JavaScript utilities for dates, collections, identifiers, and everyday application tasks. Explore Lodash, date-fns, Moment.js, and more.
14 indexed packages. Inspect package specifications and compare alternatives according to their actual role in your application.
Packages in this category
- date-fns: Modern JavaScript date utility library with a comprehensive toolset.
- lodash: Lodash modular utilities.
- dayjs: 2KB immutable date time library alternative to Moment.js with the same modern API
- ramda: A practical functional library for JavaScript programmers.
- lodash-es: Lodash exported as ES modules.
- immer: Create your next immutable state by mutating the current one
- nanoid: A tiny (117 bytes), secure URL-friendly unique string ID generator
- es-toolkit: A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
- Google Closure Library: Google's common JavaScript library
- Underscore.js: JavaScript's functional programming helper library.
- Modernizr: Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
- Vue I18n: Internationalization plugin for Vue.js
- React Helmet: A document head manager for React
- Moment.js: Parse, validate, manipulate, and display dates
What to compare
- Identify the functions, locales, or date/time features you actually need.
- Compare whole-package measurements with the documented modular import paths you plan to use.
- Check whether required types and runtime requirements are declared in the chosen release.
- For dates, review the maintainer’s timezone and locale guidance rather than assuming those features are built in.
Example package specifications
date-fns
| Latest version | 4.4.0 |
|---|---|
| Runtime dependencies | 0 |
| Bundled types | Bundled declarations |
| Gzip measurement | 17.08 KiB |
Evidence and freshness
- https://registry.npmjs.org/date-fns/4.4.0 — retrieved 2026-10-29T04:34:30.701Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/date-fns/versions/4.4.0:dependencies — retrieved 2026-10-28T23:29:58.036Z
- https://bundlephobia.com/api/size?package=date-fns%404.4.0 — retrieved 2026-10-28T23:29:57.975Z
- https://api.deps.dev/v3/systems/npm/packages/date-fns/versions/4.4.0 — retrieved 2026-10-29T04:34:30.876Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fdate-fns%2Fdate-fns — retrieved 2026-10-28T23:01:24.455Z (stale snapshot; refresh pending)
lodash
| Latest version | 4.18.1 |
|---|---|
| Runtime dependencies | 0 |
| Bundled types | Not declared |
| Gzip measurement | 25.24 KiB |
Evidence and freshness
- https://registry.npmjs.org/lodash/4.18.1 — retrieved 2026-10-29T04:34:30.173Z (stale snapshot; refresh pending)
- https://bundlephobia.com/api/size?package=lodash%404.18.1 — retrieved 2026-10-28T23:30:07.639Z
- https://api.deps.dev/v3/systems/npm/packages/lodash/versions/4.18.1:dependencies — retrieved 2026-10-28T23:30:07.538Z
- https://api.deps.dev/v3/systems/npm/packages/lodash/versions/4.18.1 — retrieved 2026-10-29T04:34:30.518Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Flodash%2Flodash — retrieved 2026-10-28T23:01:27.556Z (stale snapshot; refresh pending)