Package Exports
- jscpd
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.
Status
Installation
npm install jscpd -gUsage
jscpd -f **/*.js -e **/node_modules/**or
jscpd --files **/*.js --exclude **/*.min.js --output report.xmlPlease see the minimatch documentation for more details.
Deprecated style:
jscpd -p /path/to/js/code -i node_modules/or
# coffeescript
jscpd = require('jspd')
result = jscpd::run
path: 'my/project/folder'Options:
-l, --min-lines [NUMBER]min size of duplication in code lines (Default is 5)
-t, --min-tokens [NUMBER]mim size of duplication in code tokens (Default is 70)
-f, --files STRING glob pattern for find code
-e, --exclude STRING directory to ignore
-c, --coffee BOOLEAN is CoffeeScript code
-o, --output PATH path to report xml file
--verbose show full info about copies-v, --version Display the current version
-h, --help Display help and usage details
-p, --path [PATH] path to code (depricated, use -d instant of this)
-i, --ignore PATH directory to ignore (depricated, use -e instant of this)




