{"_id":"@jscpd/finder@4.3.0","bugs":{"url":"https://github.com/kucherenko/jscpd/issues"},"dist":{"shasum":"55b616e5300a3b0d608d519b041c4bb640a9a91a","tarball":"http://registry-npm.ywwl.com/@jscpd/finder/download/@jscpd/finder-4.3.0.tgz","fileCount":9,"integrity":"sha512-MnEUyier0D6P9zRIhAlBoyJUV8BYT6d5FDZuhR7X23FdZAgdMV8yaRRO1Q1EveK9/ReA6WVHT1HE8F15rij71A==","signatures":[{"sig":"MEUCIQDfmqeaEjuwbAGNGJpxU5gOKfZ0fmbyo0HvQ/YwRm0NPwIgHBe3HDJg+6UHIg8oLrgnO8yFWCjcajcCFeWf4RAdTcc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC04L8Yezb1s3WcVuf2wrU/HKroY8gVaHms0QDyq+p6XwIhANlPhuV15S56L7XCyte21hvnRar8i2fmxdz9rwaLursO"}],"unpackedSize":214050,"size":52121,"noattachment":false,"key":"/@jscpd/finder/-/@jscpd/finder-4.3.0.tgz"},"main":"dist/index.js","name":"@jscpd/finder","_from":"file:jscpd-finder-4.3.0.tgz","author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./README.md":"./README.md"},"gitHead":"fa06f839d6c5335a1e9dbf0c7387710fcd42eb54","license":"MIT","scripts":{"dev":"nodemon","test":"vitest run","build":"tsup-node --dts","cleanup":"rimraf ./dist .turbo","typecheck":"tsc"},"typings":"dist/index.d.mts","version":"4.3.0","_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"homepage":"https://jscpd.dev","_resolved":"/tmp/d2db5742a9d5f6dba6cdd4d1e53656cb/jscpd-finder-4.3.0.tgz","_integrity":"sha512-MnEUyier0D6P9zRIhAlBoyJUV8BYT6d5FDZuhR7X23FdZAgdMV8yaRRO1Q1EveK9/ReA6WVHT1HE8F15rij71A==","repository":{"url":"git+https://github.com/kucherenko/jscpd.git","type":"git"},"_npmVersion":"11.16.0","description":"detector of copy/paste in files","directories":{"src":"src","test":"__tests__"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"_nodeVersion":"24.18.0","dependencies":{"pug":"^3.0.4","bytes":"^3.1.2","blamer":"^1.0.6","colors":"^1.4.0","fs-extra":"^11.3.6","fast-glob":"^3.3.2","cli-table3":"^0.6.5","@jscpd/core":"4.2.5","markdown-table":"^2.0.0","@jscpd/tokenizer":"4.2.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.10","nodemon":"^3.1.14","ts-node":"^10.9.2","@types/pug":"^2.0.10","typescript":"^5.5.4","@types/node":"^26.0.1","@types/bytes":"^3.1.4","@jscpd/tsconfig":"5.2.4","@types/fs-extra":"^11.0.4","@types/markdown-table":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/finder_4.3.0_1786637529510_0.46152940361892614"},"readme":"# `@jscpd/finder`\n\n> File discovery and in-files detection package for [jscpd](https://github.com/kucherenko/jscpd) — walks the filesystem to collect source files, runs the duplicate detector across them, and provides built-in reporters, subscribers, validators, and hooks.\n\nKey exports:\n\n- **`getFilesToDetect(options)`** — resolves the file list from paths, globs, and ignore patterns\n- **`InFilesDetector`** — orchestrates tokenization, store lookup, and clone collection across a file list\n- **Reporters** — `console`, `consoleFull`, `json`, `xml`, `csv`, `markdown`, `xcode`, `ai`, `silent`, `threshold`\n- **Subscribers** — `verbose`, `progress`\n- **Validators** — `skipLocal`\n- **Hooks** — `blamer`, `fragment`\n\n## Installation\n\n```bash\nnpm install @jscpd/finder --save\n```\n\n## Usage\n\n```typescript\nimport { Tokenizer } from '@jscpd/tokenizer';\nimport {\n  MemoryStore,\n  IOptions,\n  IClone,\n  IStore,\n  ITokenizer,\n} from '@jscpd/core';\nimport { EntryWithContent, getFilesToDetect, InFilesDetector } from '@jscpd/finder';\n\nconst options: IOptions = {\n  minLines: 5,\n  maxLines: 500,\n  path: ['list of folders and files to analyse for clones'],\n};\n\nconst tokenizer: ITokenizer = new Tokenizer();\n// any store implementing IStore works here\nconst store: IStore = new MemoryStore();\n\nconst files: EntryWithContent[] = getFilesToDetect(options);\nconst detector = new InFilesDetector(tokenizer, store, options);\n\n(async () => {\n  const clones: IClone[] = await detector.detect(files);\n})();\n```\n\n\n## License\n\n[MIT](LICENSE) © Andrey Kucherenko\n","publish_time":1786637529595,"_cnpm_publish_time":1786637529595,"dist-tags":{"canary":"3.3.0-alpha.8","latest":"4.3.0","rc":"4.0.0"}}