jscpd
« Back to VersTracker
Description:
Copy/paste detector for programming source code
Type: Formula  |  Latest Version: 4.0.5@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 5,117  |  Forks: 219  |  Language: TypeScript  |  Category: Developer tools
Tags: code-quality duplication-detection static-analysis developer-tool typescript
Install: brew install jscpd
About:
jscpd is a token-based duplicate code detection tool that scans source code across over 150 programming languages and formats. It identifies copy-pasted code blocks to help developers reduce technical debt and maintain code quality. Its main value is providing detailed reports on code duplication within projects or between different codebases.
Key Features:
  • Supports 150+ programming languages and formats
  • Token-based detection for accurate duplication reporting
  • Configurable threshold for clone size and sensitivity
  • Multiple output report formats (console, JSON, XML, HTML)
  • Integration with CI/CD pipelines and pre-commit hooks
Use Cases:
  • Identifying and refactoring duplicate code during code reviews
  • Enforcing code quality standards in continuous integration pipelines
  • Performing legacy codebase analysis to assess technical debt
Alternatives:
  • PMD-CPD – Java-focused, but supports multiple languages; jscpd offers broader modern language support and more report formats.
  • SonarQube – A comprehensive platform for code quality; jscpd is a focused, standalone tool specifically for duplication detection.
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 4.0.5 0 VERSION_BUMP 0a0ece28
Sep 14, 2024 10:19am 0 VERSION_BUMP 9bb863be