Package Exports
- jscpd/src/strategy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jscpd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Copy/paste detector for JavaScript and CoffeeScript code
jscpd
is a tool for detect copy/past "design pattern" in JavaScript and CoffeeScript code.
Installation
npm install jscpd -g
Usage
jscpd -p /path/to/js/code -o /path/to/xml/output
Options:
- -l, --min-lines min size of duplication in code lines (Default is 5)
- -t, --min-tokens mim size of duplication in code tokens (Default is 70)
- -p, --path path to JavaScript code (Default is current working dir)
- -c, --coffee BOOLEAN is CoffeeScript code
- -i, --ignore directory to ignore
- -o, --output path to report xml file, report generated in PMD format
- --verbose show full info about copies
- -v, --version Display the current version
- -h, --help Display help and usage details