</>PackageGraphPackageGraph

lodash

npmv4.18.1

Lodash modular utilities.

Safe to adopt

Yes — lodash scores well across adoption, maintenance, weight, supply chain, and licensing. 173.7M downloads per week and 20 known dependents. Last published 161 days ago. 3 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    173.7M downloads per week and 20 known dependents.

  • BMaintenance: grade B, Good.

    Last published 161 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 1.3 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding lodash to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.3 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the lodash README.

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

lodash vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
lodashthis page173.7M20MIT5 months ago
type-fest385.6M6(MIT OR CC0-1.0)11 days ago
strip-json-comments213.9M2MIT11 days ago
path-parse137.2M1MIT11 days ago
meow42.8M1MIT11 days ago
requestdeprecated14.5M4Apache-2.011 days ago

Used by

Popular packages that depend on lodash.

esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

111.9M/wk5 dependentsBSD-2-Clause
rxjsnpm

Reactive Extensions for modern JavaScript

104.6M/wk6 dependentsApache-2.0TS
webpacknpm

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

56.4M/wk29 dependentsMITTS
ts-nodenpm

TypeScript execution environment and REPL for node.js, with source map support

49.4M/wk38 dependentsMITTS
reselectnpm

Selectors for Redux.

47.2M/wk1 dependentsMITTS
pg-poolnpm

Connection pool for node-postgres

46.6M/wk1 dependentsMIT
momentnpm

Parse, validate, manipulate, and display dates

36.9M/wk2 dependentsMITTS
node-sassnpm

Wrapper around libsass

999.7K/wk0 dependentsMITdeprecated
libpqnpm

Low-level native bindings to PostgreSQL libpq

308.3K/wk1 dependentsMIT
react-fast-comparenpm

Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.

0/wk1 dependentsMITTS
sass-graphnpm

Parse sass files and extract a graph of imports

0/wk1 dependentsMIT
globulenpm

An easy-to-use wildcard globbing library.

0/wk1 dependentsMIT
neo-asyncnpm

Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster

0/wk3 dependentsMIT
immernpm

Create your next immutable state by mutating the current one

0/wk3 dependentsMITTS
pg-nativenpm

A slightly nicer interface to Postgres over node-libpq

0/wk2 dependentsMIT
knexnpm

A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3

0/wk1 dependentsMITTS
fast-levenshteinnpm

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

0/wk3 dependentsMIT
jest-utilnpm

This packages is a collection of utilities and helper functions

0/wk23 dependentsMITTS
@cspotcode/source-map-supportnpm

Fixes stack traces for files with source maps

0/wk1 dependentsMITTS
big-integernpm

An arbitrary length integer library for Javascript

0/wk1 dependentsUnlicenseTS

Relationship graph

Dependencies (left) and dependents (right) of lodash.

Frequently installed together

Release history

3 releases in the last two years, typically about 36 days apart.

Recent versions of lodash
VersionPublishedSizeLicense
4.18.1latest5 months ago1.3 MBMIT
4.18.05 months ago1.3 MBMIT
4.17.237 months ago1.3 MBMIT
4.17.215 years ago1.3 MBMIT
4.17.206 years ago1.3 MBMIT
4.17.196 years ago1.3 MBMIT
4.17.186 years ago1.2 MBMIT
4.17.176 years ago1.1 MBMIT
4.17.166 years ago575 KBMIT
4.17.157 years ago1.3 MBMIT
4.17.147 years ago1.3 MBMIT
4.17.137 years ago1.3 MBMIT
4.17.127 years ago1.3 MBMIT
4.17.118 years ago1.3 MBMIT
4.17.108 years ago1.3 MBMIT

Overview

lodash is an npm package that lodash modular utilities. It is extremely widely used, with about 173.7M downloads per week and 20 known dependents in the graph. The latest version is 4.18.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need lodash modular utilities and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (173.7M weekly downloads).
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use lodash?

Yes — lodash scores well across adoption, maintenance, weight, supply chain, and licensing. 173.7M downloads per week and 20 known dependents. Last published 161 days ago. 3 releases in the last 2 years.

How do I install lodash?

Run `npm install lodash` to add lodash to your npm project.

What license is lodash released under?

lodash is distributed under the MIT license.

How popular is lodash?

lodash has approximately 173,745,865 downloads per week and 20 known dependent packages.

Is lodash still maintained?

The most recent release of lodash (v4.18.1) was published 5 months ago.

Does lodash run install scripts?

No. lodash does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.