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 version4.4.0
Runtime dependencies0
Bundled typesBundled declarations
Gzip measurement17.08 KiB

Evidence and freshness

lodash

Latest version4.18.1
Runtime dependencies0
Bundled typesNot declared
Gzip measurement25.24 KiB

Evidence and freshness

Category comparisons

Filter this category by your requirements