Detect copy-pasted and structurally similar JavaScript code based on the jsinspect
tool but with a automated threshold parameter.
the tool will be count the threshold up to the highest number to find the biggest code duplication.
This is experimental, do not use in production
# install it as dependencies
npm install paulvollmer/jsinspector --save
# or install it globally
npm install -g paulvollmer/jsinspector
nodejs v6 or above is required
jsinspector -f fixtures/simple.js
inspector('path/to/source.js', MIN_THRESHOLD, function(report) {
console.log(report)
})