Desktop App Productivity ★ 6,595 stars on GitHub

jscpd

Find repeated code, dead files, and complexity hotspots across hundreds of programming languages to keep software clean and maintainable.

Download (checksums.txt)

Guide and Overview

What it does in plain English

jscpd scans your programming projects to find blocks of code that have been needlessly copied and pasted across files. It understands the specific grammar rules of over 220 different programming languages, ensuring accurate detection without getting confused by simple name changes. Beyond duplication, it helps you identify unused dead code, track complexity, and generate clear health reports for your software.

Who it’s for

  • Software developers looking to clean up messy codebases and reduce technical debt.
  • Development teams wanting automated checks in their daily workflow to prevent copy-pasting.
  • Project maintainers tracking code health and duplication trends over time.

Key features

  • Language-aware detection that understands comments, strings, and syntax rules across 220+ formats.
  • Identifies exact matches, renamed variables, near-miss copies, and semantically similar functions.
  • Pinpoints dead code, unused files, and structural complexity hotspots.
  • Integrates smoothly into continuous integration pipelines and automated workflows.
  • Fast performance powered by a robust backend engine requiring minimal setup.

How to install (Download)

You can install jscpd easily using your preferred package manager or command-line tool:

  • macOS / Linux: Run curl -fsSL https://jscpd.dev/install.sh | bash in your terminal.
  • Windows (PowerShell): Run irm https://jscpd.dev/install.ps1 | iex.
  • Node.js (npx): Run npx jscpd . to try it immediately without a permanent installation.
  • Other methods: Available via npm (npm install -g jscpd), PyPI (pip install jscpd), Homebrew (brew install jscpd), and Docker.

Pros and Cons

  • Pros: Supports a massive variety of programming languages, runs quickly, and offers flexible reporting options.
  • Cons: Advanced semantic analysis features require additional configuration or local model downloads.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.