Package Lock Analyzer
Paste your package-lock.json to get a full dependency breakdown: total packages, direct vs transitive split, duplicate versions, estimated bundle size, and license distribution. Supports lockfile v1, v2, and v3.
Frequently Asked Questions
What information does this tool show from package-lock.json?▼
The analyzer shows: total package count (direct + transitive), dev-only dependency count, duplicate packages (same package with multiple versions), an estimated bundle size for production dependencies, and a license breakdown across all packages.
What are transitive dependencies?▼
Transitive (indirect) dependencies are packages that your direct dependencies depend on — not listed in your package.json but required for them to work. For example, if you install React, it transitively depends on scheduler and js-tokens. These are often the majority of packages in node_modules.
Why do I have duplicate packages?▼
Duplicate packages (same package, different versions) appear when two of your dependencies require incompatible versions of the same package. npm installs both versions in separate locations in node_modules. This increases bundle size. Tools like npm dedupe can sometimes flatten these.
What does lockfileVersion mean?▼
lockfileVersion indicates the format of your package-lock.json. Version 1 is from npm 5/6. Version 2 is from npm 7 (adds backwards-compatible packages field). Version 3 is the current format (npm 7+ with packages only). This tool supports v1, v2, and v3.
Should I commit package-lock.json?▼
Yes — always commit package-lock.json for applications. It ensures every developer and CI run gets exactly the same package versions, preventing 'works on my machine' issues. For libraries (npm packages you publish), you typically omit package-lock.json from the published artifact but still commit it to your repo.
How can I reduce my dependency count?▼
Audit large transitive deps with 'npm ls'. Remove unused packages with 'npx depcheck'. Consider replacing heavy packages (moment → date-fns, lodash → native methods). Use 'npm dedupe' to flatten duplicates. Tools like bundlephobia.com show the size cost of each package.
Related Products
on GumroadTypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →You Might Also Need
npm Package Stats
Look up npm package weekly download counts, unpacked size, dependency count, latest version, license, and repository link. Live data from the npm registry.
Open free tool →
pnpm Workspace Generator
GUI to configure a pnpm monorepo workspace with package globs, catalog entries, overrides, and options. Generates a ready-to-use pnpm-workspace.yaml file.
Open free tool →
NPM Bundle Size Estimator
Check npm package bundle sizes — minified and gzip. Enter multiple packages at once, see tree-shaking info, and compare sizes side by side.
Open free tool →
More Free Tools
Related Articles
pnpm vs npm vs yarn: Package Manager Performance Benchmark 2026
Real benchmarks comparing pnpm, npm, and yarn in 2026 — install speed, disk usage, monorepo support, lockfile format, and which to choose for your JavaScript project.
Bun vs npm vs Yarn vs pnpm: Package Manager Speed & DX Comparison 2025
Detailed comparison of Bun, npm, Yarn, and pnpm package managers. Real install speed benchmarks, lockfile differences, monorepo support, security models, and when to choose each in 2025.
pnpm vs npm vs Yarn: Node.js Package Manager Comparison 2026
A comprehensive technical comparison of pnpm, npm, and Yarn for Node.js development in 2026 — covering install speed, disk usage, workspace support, lockfile format, monorepo capabilities, and a migration guide.
npm vs pnpm vs Yarn vs Bun: Best JavaScript Package Manager in 2026
A comprehensive comparison of npm, pnpm, Yarn Classic, Yarn Berry, and Bun package managers. Benchmark data, disk usage, monorepo support, and a recommendation matrix to help you pick the right tool in 2026.
npm vs pnpm vs yarn: Which Package Manager Should You Use in 2026?
A practical comparison of npm, pnpm, and yarn for JavaScript developers. Covers install speed, disk space, monorepo support, lockfiles, and when to pick each one.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →