jscpd 5.0.8

Copy/paste detector — fast Rust-based CLI for code duplication detection
Documentation

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

cargo install jscpd

Usage

# Scan current directory
cpd .

# Scan specific paths
cpd src/ lib/

# Set minimum tokens, lines, and output format
cpd --min-tokens 50 --min-lines 5 --reporters json,console .

# List supported formats
cpd --list

# Enable git blame
cpd --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