jscpd

Detect copy-paste code duplication in source files

brewmacoslinux
Try with needOr install directly
Source

About

Copy/paste detector for programming source code

Commands

jscpd

Examples

find duplicate code in a project directory$ jscpd /path/to/project
detect duplicates in specific file types only$ jscpd --extensions js,ts /path/to/project
find copy-paste code and generate HTML report$ jscpd --reporters html /path/to/project
detect code duplicates ignoring specific directories$ jscpd --ignore node_modules,dist /path/to/project
find duplicate code blocks with minimum line threshold$ jscpd --min-lines 5 /path/to/project