jscpd (cpd)
Copy/paste detector — fast Rust-based CLI for code duplication detection.
A high-performance reimplementation of jscpd in Rust, providing near-identical CLI compatibility with 50x+ speed improvement.
Installation
Usage
# Scan current directory
# Scan specific paths
# Set minimum tokens, lines, and output format
# List supported formats
# Enable git blame
Output Formats
console, json, xml, csv, html, markdown, sarif, xcode, badge, silent, ai, threshold
npm Distribution
Also available on npm as cpd with prebuilt binaries for Linux, macOS, and Windows.
License
MIT