https://github.com/neo-hack/jscpd-rs
jscpd in rust
https://github.com/neo-hack/jscpd-rs
Last synced: 9 months ago
JSON representation
jscpd in rust
- Host: GitHub
- URL: https://github.com/neo-hack/jscpd-rs
- Owner: neo-hack
- Created: 2021-02-06T15:34:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T05:36:27.000Z (over 4 years ago)
- Last Synced: 2025-10-10T22:32:19.568Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 150 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jscpdrs
> detect copy paste in your `js/ts/jsx/tsx` files
## install
## brew
```console
brew tap neo-hack/jscpdrs
brew install jscpdrs
```
## usage
goto any `js/ts/jsx/tsx` projects.
```console
$ jscpdrs
```
will generate `result.json` files contain `copy/paste` code fragment
### options
- `cwd` - config detect project path, default `./`. e.g. `jscpdrs --cwd `
- `ignore` - ignore detect files, support multiple values, default ignore `node_modules` and files defined in `.gitignore`. e.g. `jscpdrs --ignore mock __test__`
- `min_token` - dupe token more than `min_token` is duplicated, default `50`. e.g. `jscpdrs --min_token 50`
- `output` - define output results file path, default `./results.json`. e.g. `jscpdrs --output path/results.json`