lodash
npmv4.18.1Lodash 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| lodashthis page | 173.7M | 20 | MIT | 5 months ago |
| type-fest | 385.6M | 6 | (MIT OR CC0-1.0) | 11 days ago |
| strip-json-comments | 213.9M | 2 | MIT | 11 days ago |
| path-parse | 137.2M | 1 | MIT | 11 days ago |
| meow | 42.8M | 1 | MIT | 11 days ago |
| requestdeprecated | 14.5M | 4 | Apache-2.0 | 11 days ago |
Used by
Popular packages that depend on lodash.
ECMAScript parsing infrastructure for multipurpose analysis
Reactive Extensions for modern JavaScript
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.
TypeScript execution environment and REPL for node.js, with source map support
Selectors for Redux.
Connection pool for node-postgres
Parse, validate, manipulate, and display dates
Wrapper around libsass
Low-level native bindings to PostgreSQL libpq
Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.
Parse sass files and extract a graph of imports
An easy-to-use wildcard globbing library.
Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
Create your next immutable state by mutating the current one
A slightly nicer interface to Postgres over node-libpq
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
This packages is a collection of utilities and helper functions
Fixes stack traces for files with source maps
An arbitrary length integer library for Javascript
Relationship graph
Dependencies (left) and dependents (right) of lodash.
Frequently installed together
TypeScript definitions for node
Prettier is an opinionated code formatter
An AST-based pattern checker for JavaScript.
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
A drop-in replacement for fs, making various improvements.
ECMAScript parser
Next generation testing framework powered by Vite
TypeScript definitions for estree
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset
Node's event emitter for all engines.
No description provided.
Release history
3 releases in the last two years, typically about 36 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.18.1latest | 5 months ago | 1.3 MB | MIT |
| 4.18.0 | 5 months ago | 1.3 MB | MIT |
| 4.17.23 | 7 months ago | 1.3 MB | MIT |
| 4.17.21 | 5 years ago | 1.3 MB | MIT |
| 4.17.20 | 6 years ago | 1.3 MB | MIT |
| 4.17.19 | 6 years ago | 1.3 MB | MIT |
| 4.17.18 | 6 years ago | 1.2 MB | MIT |
| 4.17.17 | 6 years ago | 1.1 MB | MIT |
| 4.17.16 | 6 years ago | 575 KB | MIT |
| 4.17.15 | 7 years ago | 1.3 MB | MIT |
| 4.17.14 | 7 years ago | 1.3 MB | MIT |
| 4.17.13 | 7 years ago | 1.3 MB | MIT |
| 4.17.12 | 7 years ago | 1.3 MB | MIT |
| 4.17.11 | 8 years ago | 1.3 MB | MIT |
| 4.17.10 | 8 years ago | 1.3 MB | MIT |
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.
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.