[{"data":1,"prerenderedAt":2169},["ShallowReactive",2],{"navigation_docs":3,"-project-v4":249,"-project-v4-surround":2160,"page-views-\u002Fproject\u002Fv4":2165},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"id":250,"title":210,"body":251,"description":2151,"extension":2152,"links":2153,"meta":2154,"navigation":2155,"path":211,"seo":2156,"stem":212,"__hash__":2159},"docs\u002F5.project\u002F3.v4.md",{"type":252,"value":253,"toc":2136},"minimark",[254,274,281,430,435,454,461,464,524,537,541,594,598,621,633,877,882,896,1128,1130,1291,1294,1298,1343,1346,1499,1626,1663,1667,1798,1804,1808,1814,1906,1915,1924,2070,2074,2087,2091,2132],[255,256,257,258,269,270,273],"p",{},"jscpd v4 is the version of the copy\u002Fpaste detector written in TypeScript and running on Node.js. It is maintained on the ",[259,260,264,268],"a",{"href":261,"rel":262},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Ftree\u002Fmaster-v4",[263],"nofollow",[265,266,267],"code",{},"master-v4"," branch"," and published to npm under the ",[265,271,272],{},"latest-4"," dist-tag. The current major version, v5, is a Rust engine that ships as a self-contained binary and is what this site documents everywhere else.",[255,275,276,277,280],{},"Both versions read the same ",[265,278,279],{},".jscpd.json",", run the same Rabin-Karp detection algorithm, and produce the same report formats. They differ in how they are built and what surrounds the core:",[282,283,284,299],"table",{},[285,286,287],"thead",{},[288,289,290,293,296],"tr",{},[291,292],"th",{},[291,294,295],{},"v4 (TypeScript)",[291,297,298],{},"v5 (Rust)",[300,301,302,314,327,345,356,374,390,404,420],"tbody",{},[288,303,304,308,311],{},[305,306,307],"td",{},"Runtime",[305,309,310],{},"Node.js 20+",[305,312,313],{},"Self-contained binary, no runtime",[288,315,316,319,324],{},[305,317,318],{},"Install",[305,320,321],{},[265,322,323],{},"npm install -g jscpd@4",[305,325,326],{},"install script, npm, cargo, Homebrew, Nix, Docker",[288,328,329,332,343],{},[305,330,331],{},"Programming API",[305,333,334,335,338,339,342],{},"Node.js (",[265,336,337],{},"jscpd()",", ",[265,340,341],{},"detectClones()",")",[305,344,191],{},[288,346,347,350,353],{},[305,348,349],{},"Token cache for large repositories",[305,351,352],{},"LevelDB \u002F Redis stores",[305,354,355],{},"Not needed",[288,357,358,361,367],{},[305,359,360],{},"MCP server",[305,362,363,366],{},[265,364,365],{},"jscpd-server"," package (Streamable HTTP + REST)",[305,368,369,370,373],{},"built-in ",[265,371,372],{},"jscpd --mcp"," (stdio)",[288,375,376,378,381],{},[305,377,145],{},[305,379,380],{},"13",[305,382,383,384,338,387,342],{},"15 (adds ",[265,385,386],{},"openmetrics",[265,388,389],{},"codeclimate",[288,391,392,398,401],{},[305,393,394,395,342],{},"Baseline mode (",[265,396,397],{},"--fail-on-new-clones",[305,399,400],{},"No",[305,402,403],{},"Yes",[288,405,406,412,418],{},[305,407,408,409],{},"GitHub Action ",[265,410,411],{},"kucherenko\u002Fjscpd@v5",[305,413,414,415,342],{},"No (use ",[265,416,417],{},"npx jscpd@4",[305,419,403],{},[288,421,422,425,428],{},[305,423,424],{},"Formats",[305,426,427],{},"224",[305,429,427],{},[431,432,434],"h2",{"id":433},"when-to-use-v4","When to use v4",[436,437,438,442,448,451],"ul",{},[439,440,441],"li",{},"You call jscpd from Node.js code through the programming API.",[439,443,444,445,447],{},"You run ",[265,446,365],{}," as a REST or MCP endpoint.",[439,449,450],{},"You rely on the LevelDB or Redis store to share token maps between runs.",[439,452,453],{},"Your environment can run Node.js packages but cannot execute prebuilt native binaries.",[255,455,456,457,460],{},"If none of these apply, use v5. The ",[259,458,459],{"href":206},"migration guide"," lists every flag and config difference.",[431,462,15],{"id":463},"installation",[465,466,471],"pre",{"className":467,"code":468,"language":469,"meta":470,"style":470},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Global install (newest 4.x release)\nnpm install -g jscpd@4\n\n# No install — run once with npx\nnpx jscpd@4 .\n","bash","",[265,472,473,482,499,506,512],{"__ignoreMap":470},[474,475,478],"span",{"class":476,"line":477},"line",1,[474,479,481],{"class":480},"sHwdD","# Global install (newest 4.x release)\n",[474,483,485,489,493,496],{"class":476,"line":484},2,[474,486,488],{"class":487},"sBMFI","npm",[474,490,492],{"class":491},"sfazB"," install",[474,494,495],{"class":491}," -g",[474,497,498],{"class":491}," jscpd@4\n",[474,500,502],{"class":476,"line":501},3,[474,503,505],{"emptyLinePlaceholder":504},true,"\n",[474,507,509],{"class":476,"line":508},4,[474,510,511],{"class":480},"# No install — run once with npx\n",[474,513,515,518,521],{"class":476,"line":514},5,[474,516,517],{"class":487},"npx",[474,519,520],{"class":491}," jscpd@4",[474,522,523],{"class":491}," .\n",[255,525,526,529,530,532,533,536],{},[265,527,528],{},"jscpd@4"," resolves to the newest 4.x release through the ",[265,531,272],{}," dist-tag. Plain ",[265,534,535],{},"npm install -g jscpd"," installs v5. Node.js 20 or newer is required.",[431,538,540],{"id":539},"quick-start","Quick start",[465,542,544],{"className":467,"code":543,"language":469,"meta":470,"style":470},"# Scan a project\njscpd \u002Fpath\u002Fto\u002Fcode\n\n# Fail when more than 5% of the code is duplicated, write JSON and HTML reports\njscpd --threshold 5 --reporters console,json,html --output report .\u002Fsrc\n",[265,545,546,551,559,563,568],{"__ignoreMap":470},[474,547,548],{"class":476,"line":477},[474,549,550],{"class":480},"# Scan a project\n",[474,552,553,556],{"class":476,"line":484},[474,554,555],{"class":487},"jscpd",[474,557,558],{"class":491}," \u002Fpath\u002Fto\u002Fcode\n",[474,560,561],{"class":476,"line":501},[474,562,505],{"emptyLinePlaceholder":504},[474,564,565],{"class":476,"line":508},[474,566,567],{"class":480},"# Fail when more than 5% of the code is duplicated, write JSON and HTML reports\n",[474,569,570,572,575,579,582,585,588,591],{"class":476,"line":514},[474,571,555],{"class":487},[474,573,574],{"class":491}," --threshold",[474,576,578],{"class":577},"sbssI"," 5",[474,580,581],{"class":491}," --reporters",[474,583,584],{"class":491}," console,json,html",[474,586,587],{"class":491}," --output",[474,589,590],{"class":491}," report",[474,592,593],{"class":491}," .\u002Fsrc\n",[431,595,597],{"id":596},"cli","CLI",[465,599,601],{"className":467,"code":600,"language":469,"meta":470,"style":470},"jscpd [options] \u003Cpath ...>\n",[265,602,603],{"__ignoreMap":470},[474,604,605,607,611,615,618],{"class":476,"line":477},[474,606,555],{"class":487},[474,608,610],{"class":609},"sTEyZ"," [options] ",[474,612,614],{"class":613},"sMK4o","\u003C",[474,616,617],{"class":609},"path ...",[474,619,620],{"class":613},">\n",[255,622,623,624,629,630,632],{},"The most used options. The ",[259,625,628],{"href":626,"rel":627},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster-v4\u002Fdocs\u002Ftypescript.md#options",[263],"full reference"," on the ",[265,631,267],{}," branch lists all of them.",[282,634,635,648],{},[285,636,637],{},[288,638,639,642,645],{},[291,640,641],{},"Option",[291,643,644],{},"Description",[291,646,647],{},"Default",[300,649,650,663,676,689,704,719,742,755,767,779,800,816,829,841,853,865],{},[288,651,652,657,660],{},[305,653,654],{},[265,655,656],{},"-l, --min-lines",[305,658,659],{},"Minimum lines in a clone",[305,661,662],{},"5",[288,664,665,670,673],{},[305,666,667],{},[265,668,669],{},"-k, --min-tokens",[305,671,672],{},"Minimum tokens in a clone",[305,674,675],{},"50",[288,677,678,683,686],{},[305,679,680],{},[265,681,682],{},"-t, --threshold",[305,684,685],{},"Duplication percentage threshold, exit 1 if exceeded",[305,687,688],{},"—",[288,690,691,696,699],{},[305,692,693],{},[265,694,695],{},"-r, --reporters",[305,697,698],{},"Comma-separated reporters",[305,700,701],{},[265,702,703],{},"time,console",[288,705,706,711,714],{},[305,707,708],{},[265,709,710],{},"-o, --output",[305,712,713],{},"Output directory for file reporters",[305,715,716],{},[265,717,718],{},".\u002Freport\u002F",[288,720,721,726,738],{},[305,722,723],{},[265,724,725],{},"-m, --mode",[305,727,728,729,338,732,338,735],{},"Detection mode: ",[265,730,731],{},"strict",[265,733,734],{},"mild",[265,736,737],{},"weak",[305,739,740],{},[265,741,734],{},[288,743,744,749,752],{},[305,745,746],{},[265,747,748],{},"-f, --format",[305,750,751],{},"Formats to check (comma-separated)",[305,753,754],{},"all detected",[288,756,757,762,765],{},[305,758,759],{},[265,760,761],{},"-i, --ignore",[305,763,764],{},"Glob patterns to exclude",[305,766,688],{},[288,768,769,774,777],{},[305,770,771],{},[265,772,773],{},"-p, --pattern",[305,775,776],{},"Glob pattern for file search",[305,778,688],{},[288,780,781,790,797],{},[305,782,783,786,787],{},[265,784,785],{},"--gitignore"," \u002F ",[265,788,789],{},"--no-gitignore",[305,791,792,793,796],{},"Respect ",[265,794,795],{},".gitignore"," files",[305,798,799],{},"on",[288,801,802,807,813],{},[305,803,804],{},[265,805,806],{},"--store",[305,808,809,812],{},[265,810,811],{},"leveldb"," for large repositories",[305,814,815],{},"memory",[288,817,818,823,826],{},[305,819,820],{},[265,821,822],{},"-b, --blame",[305,824,825],{},"Enrich clones with git blame author data",[305,827,828],{},"off",[288,830,831,836,839],{},[305,832,833],{},[265,834,835],{},"--skipLocal",[305,837,838],{},"Skip clones within the same directory",[305,840,828],{},[288,842,843,848,851],{},[305,844,845],{},[265,846,847],{},"--exitCode",[305,849,850],{},"Exit code when clones are detected",[305,852,688],{},[288,854,855,860,863],{},[305,856,857],{},[265,858,859],{},"--noTips",[305,861,862],{},"Suppress tips (useful in CI)",[305,864,828],{},[288,866,867,872,875],{},[305,868,869],{},[265,870,871],{},"--list",[305,873,874],{},"List all supported formats",[305,876,688],{},[878,879,881],"h3",{"id":880},"configuration","Configuration",[255,883,884,885,887,888,891,892,895],{},"Create ",[265,886,279],{}," in the project root, or put the same keys under a ",[265,889,890],{},"\"jscpd\""," key in ",[265,893,894],{},"package.json",":",[465,897,901],{"className":898,"code":899,"language":900,"meta":470,"style":470},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"path\": [\".\u002Fsrc\"],\n  \"reporters\": [\"console\", \"json\", \"html\"],\n  \"minLines\": 5,\n  \"minTokens\": 50,\n  \"threshold\": 5,\n  \"format\": [\"javascript\", \"typescript\"],\n  \"ignore\": [\"**\u002Fnode_modules\u002F**\", \"**\u002Fdist\u002F**\"],\n  \"gitignore\": true,\n  \"mode\": \"mild\"\n}\n","json",[265,902,903,908,935,976,992,1008,1024,1056,1088,1103,1122],{"__ignoreMap":470},[474,904,905],{"class":476,"line":477},[474,906,907],{"class":613},"{\n",[474,909,910,913,917,920,922,925,927,930,932],{"class":476,"line":484},[474,911,912],{"class":613},"  \"",[474,914,916],{"class":915},"spNyl","path",[474,918,919],{"class":613},"\"",[474,921,895],{"class":613},[474,923,924],{"class":613}," [",[474,926,919],{"class":613},[474,928,929],{"class":491},".\u002Fsrc",[474,931,919],{"class":613},[474,933,934],{"class":613},"],\n",[474,936,937,939,942,944,946,948,950,953,955,958,961,963,965,967,969,972,974],{"class":476,"line":501},[474,938,912],{"class":613},[474,940,941],{"class":915},"reporters",[474,943,919],{"class":613},[474,945,895],{"class":613},[474,947,924],{"class":613},[474,949,919],{"class":613},[474,951,952],{"class":491},"console",[474,954,919],{"class":613},[474,956,957],{"class":613},",",[474,959,960],{"class":613}," \"",[474,962,900],{"class":491},[474,964,919],{"class":613},[474,966,957],{"class":613},[474,968,960],{"class":613},[474,970,971],{"class":491},"html",[474,973,919],{"class":613},[474,975,934],{"class":613},[474,977,978,980,983,985,987,989],{"class":476,"line":508},[474,979,912],{"class":613},[474,981,982],{"class":915},"minLines",[474,984,919],{"class":613},[474,986,895],{"class":613},[474,988,578],{"class":577},[474,990,991],{"class":613},",\n",[474,993,994,996,999,1001,1003,1006],{"class":476,"line":514},[474,995,912],{"class":613},[474,997,998],{"class":915},"minTokens",[474,1000,919],{"class":613},[474,1002,895],{"class":613},[474,1004,1005],{"class":577}," 50",[474,1007,991],{"class":613},[474,1009,1011,1013,1016,1018,1020,1022],{"class":476,"line":1010},6,[474,1012,912],{"class":613},[474,1014,1015],{"class":915},"threshold",[474,1017,919],{"class":613},[474,1019,895],{"class":613},[474,1021,578],{"class":577},[474,1023,991],{"class":613},[474,1025,1027,1029,1032,1034,1036,1038,1040,1043,1045,1047,1049,1052,1054],{"class":476,"line":1026},7,[474,1028,912],{"class":613},[474,1030,1031],{"class":915},"format",[474,1033,919],{"class":613},[474,1035,895],{"class":613},[474,1037,924],{"class":613},[474,1039,919],{"class":613},[474,1041,1042],{"class":491},"javascript",[474,1044,919],{"class":613},[474,1046,957],{"class":613},[474,1048,960],{"class":613},[474,1050,1051],{"class":491},"typescript",[474,1053,919],{"class":613},[474,1055,934],{"class":613},[474,1057,1059,1061,1064,1066,1068,1070,1072,1075,1077,1079,1081,1084,1086],{"class":476,"line":1058},8,[474,1060,912],{"class":613},[474,1062,1063],{"class":915},"ignore",[474,1065,919],{"class":613},[474,1067,895],{"class":613},[474,1069,924],{"class":613},[474,1071,919],{"class":613},[474,1073,1074],{"class":491},"**\u002Fnode_modules\u002F**",[474,1076,919],{"class":613},[474,1078,957],{"class":613},[474,1080,960],{"class":613},[474,1082,1083],{"class":491},"**\u002Fdist\u002F**",[474,1085,919],{"class":613},[474,1087,934],{"class":613},[474,1089,1091,1093,1096,1098,1100],{"class":476,"line":1090},9,[474,1092,912],{"class":613},[474,1094,1095],{"class":915},"gitignore",[474,1097,919],{"class":613},[474,1099,895],{"class":613},[474,1101,1102],{"class":613}," true,\n",[474,1104,1106,1108,1111,1113,1115,1117,1119],{"class":476,"line":1105},10,[474,1107,912],{"class":613},[474,1109,1110],{"class":915},"mode",[474,1112,919],{"class":613},[474,1114,895],{"class":613},[474,1116,960],{"class":613},[474,1118,734],{"class":491},[474,1120,1121],{"class":613},"\"\n",[474,1123,1125],{"class":476,"line":1124},11,[474,1126,1127],{"class":613},"}\n",[878,1129,145],{"id":941},[282,1131,1132,1142],{},[285,1133,1134],{},[288,1135,1136,1139],{},[291,1137,1138],{},"Reporter",[291,1140,1141],{},"Output",[300,1143,1144,1153,1163,1174,1187,1199,1211,1223,1236,1249,1259,1269,1281],{},[288,1145,1146,1150],{},[305,1147,1148],{},[265,1149,952],{},[305,1151,1152],{},"Clone list with a per-format statistics table",[288,1154,1155,1160],{},[305,1156,1157],{},[265,1158,1159],{},"consoleFull",[305,1161,1162],{},"Full source snippets for each clone",[288,1164,1165,1169],{},[305,1166,1167],{},[265,1168,900],{},[305,1170,1171],{},[265,1172,1173],{},"report\u002Fjscpd-report.json",[288,1175,1176,1181],{},[305,1177,1178],{},[265,1179,1180],{},"xml",[305,1182,1183,1186],{},[265,1184,1185],{},"report\u002Fjscpd-report.xml"," (PMD CPD format)",[288,1188,1189,1194],{},[305,1190,1191],{},[265,1192,1193],{},"csv",[305,1195,1196],{},[265,1197,1198],{},"report\u002Fjscpd-report.csv",[288,1200,1201,1206],{},[305,1202,1203],{},[265,1204,1205],{},"markdown",[305,1207,1208],{},[265,1209,1210],{},"report\u002Fjscpd-report.md",[288,1212,1213,1217],{},[305,1214,1215],{},[265,1216,971],{},[305,1218,1219,1220],{},"Interactive HTML report in ",[265,1221,1222],{},"report\u002Fhtml\u002F",[288,1224,1225,1230],{},[305,1226,1227],{},[265,1228,1229],{},"badge",[305,1231,1232,1233],{},"SVG badge ",[265,1234,1235],{},"report\u002Fjscpd-badge.svg",[288,1237,1238,1243],{},[305,1239,1240],{},[265,1241,1242],{},"sarif",[305,1244,1245,1248],{},[265,1246,1247],{},"report\u002Fjscpd-sarif.json"," for GitHub Code Scanning",[288,1250,1251,1256],{},[305,1252,1253],{},[265,1254,1255],{},"ai",[305,1257,1258],{},"Token-efficient output for LLM pipelines",[288,1260,1261,1266],{},[305,1262,1263],{},[265,1264,1265],{},"xcode",[305,1267,1268],{},"Xcode-compatible warnings",[288,1270,1271,1275],{},[305,1272,1273],{},[265,1274,1015],{},[305,1276,1277,1278],{},"Exit 1 if duplication exceeds ",[265,1279,1280],{},"--threshold",[288,1282,1283,1288],{},[305,1284,1285],{},[265,1286,1287],{},"silent",[305,1289,1290],{},"No console output",[255,1292,1293],{},"Third-party reporters are loaded by npm package name.",[878,1295,1297],{"id":1296},"detection-modes","Detection modes",[282,1299,1300,1310],{},[285,1301,1302],{},[288,1303,1304,1307],{},[291,1305,1306],{},"Mode",[291,1308,1309],{},"Behavior",[300,1311,1312,1321,1330],{},[288,1313,1314,1318],{},[305,1315,1316],{},[265,1317,731],{},[305,1319,1320],{},"All tokens must match, including whitespace and newlines",[288,1322,1323,1327],{},[305,1324,1325],{},[265,1326,734],{},[305,1328,1329],{},"Ignore empty and newline tokens",[288,1331,1332,1336],{},[305,1333,1334],{},[265,1335,737],{},[305,1337,1338,1339,1342],{},"Ignore comments, empty tokens, and newlines (",[265,1340,1341],{},"--skipComments"," is an alias)",[431,1344,331],{"id":1345},"programming-api",[465,1347,1350],{"className":1348,"code":1349,"language":1051,"meta":470,"style":470},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { detectClones } from 'jscpd';\n\nconst clones = await detectClones({\n  path: ['.\u002Fsrc'],\n  silent: true,\n  format: ['javascript', 'typescript'],\n  minLines: 5,\n  minTokens: 50,\n});\n",[265,1351,1352,1381,1385,1407,1428,1441,1468,1479,1490],{"__ignoreMap":470},[474,1353,1354,1358,1361,1364,1367,1370,1373,1375,1378],{"class":476,"line":477},[474,1355,1357],{"class":1356},"s7zQu","import",[474,1359,1360],{"class":613}," {",[474,1362,1363],{"class":609}," detectClones",[474,1365,1366],{"class":613}," }",[474,1368,1369],{"class":1356}," from",[474,1371,1372],{"class":613}," '",[474,1374,555],{"class":491},[474,1376,1377],{"class":613},"'",[474,1379,1380],{"class":613},";\n",[474,1382,1383],{"class":476,"line":484},[474,1384,505],{"emptyLinePlaceholder":504},[474,1386,1387,1390,1393,1396,1399,1402,1405],{"class":476,"line":501},[474,1388,1389],{"class":915},"const",[474,1391,1392],{"class":609}," clones ",[474,1394,1395],{"class":613},"=",[474,1397,1398],{"class":1356}," await",[474,1400,1363],{"class":1401},"s2Zo4",[474,1403,1404],{"class":609},"(",[474,1406,907],{"class":613},[474,1408,1409,1413,1415,1417,1419,1421,1423,1426],{"class":476,"line":508},[474,1410,1412],{"class":1411},"swJcz","  path",[474,1414,895],{"class":613},[474,1416,924],{"class":609},[474,1418,1377],{"class":613},[474,1420,929],{"class":491},[474,1422,1377],{"class":613},[474,1424,1425],{"class":609},"]",[474,1427,991],{"class":613},[474,1429,1430,1433,1435,1439],{"class":476,"line":514},[474,1431,1432],{"class":1411},"  silent",[474,1434,895],{"class":613},[474,1436,1438],{"class":1437},"sfNiH"," true",[474,1440,991],{"class":613},[474,1442,1443,1446,1448,1450,1452,1454,1456,1458,1460,1462,1464,1466],{"class":476,"line":1010},[474,1444,1445],{"class":1411},"  format",[474,1447,895],{"class":613},[474,1449,924],{"class":609},[474,1451,1377],{"class":613},[474,1453,1042],{"class":491},[474,1455,1377],{"class":613},[474,1457,957],{"class":613},[474,1459,1372],{"class":613},[474,1461,1051],{"class":491},[474,1463,1377],{"class":613},[474,1465,1425],{"class":609},[474,1467,991],{"class":613},[474,1469,1470,1473,1475,1477],{"class":476,"line":1026},[474,1471,1472],{"class":1411},"  minLines",[474,1474,895],{"class":613},[474,1476,578],{"class":577},[474,1478,991],{"class":613},[474,1480,1481,1484,1486,1488],{"class":476,"line":1058},[474,1482,1483],{"class":1411},"  minTokens",[474,1485,895],{"class":613},[474,1487,1005],{"class":577},[474,1489,991],{"class":613},[474,1491,1492,1495,1497],{"class":476,"line":1090},[474,1493,1494],{"class":613},"}",[474,1496,342],{"class":609},[474,1498,1380],{"class":613},[465,1500,1502],{"className":1348,"code":1501,"language":1051,"meta":470,"style":470},"import { IClone } from '@jscpd\u002Fcore';\nimport { jscpd } from 'jscpd';\n\n\u002F\u002F argv-style, same options as the CLI\nconst clones: IClone[] = await jscpd(['', '', '.\u002Fsrc', '-m', 'weak', '--silent']);\n",[265,1503,1504,1526,1547,1551,1556],{"__ignoreMap":470},[474,1505,1506,1508,1510,1513,1515,1517,1519,1522,1524],{"class":476,"line":477},[474,1507,1357],{"class":1356},[474,1509,1360],{"class":613},[474,1511,1512],{"class":609}," IClone",[474,1514,1366],{"class":613},[474,1516,1369],{"class":1356},[474,1518,1372],{"class":613},[474,1520,1521],{"class":491},"@jscpd\u002Fcore",[474,1523,1377],{"class":613},[474,1525,1380],{"class":613},[474,1527,1528,1530,1532,1535,1537,1539,1541,1543,1545],{"class":476,"line":484},[474,1529,1357],{"class":1356},[474,1531,1360],{"class":613},[474,1533,1534],{"class":609}," jscpd",[474,1536,1366],{"class":613},[474,1538,1369],{"class":1356},[474,1540,1372],{"class":613},[474,1542,555],{"class":491},[474,1544,1377],{"class":613},[474,1546,1380],{"class":613},[474,1548,1549],{"class":476,"line":501},[474,1550,505],{"emptyLinePlaceholder":504},[474,1552,1553],{"class":476,"line":508},[474,1554,1555],{"class":480},"\u002F\u002F argv-style, same options as the CLI\n",[474,1557,1558,1560,1563,1565,1567,1570,1572,1574,1576,1579,1582,1584,1587,1589,1591,1593,1595,1597,1599,1602,1604,1606,1608,1610,1612,1614,1616,1619,1621,1624],{"class":476,"line":514},[474,1559,1389],{"class":915},[474,1561,1562],{"class":609}," clones",[474,1564,895],{"class":613},[474,1566,1512],{"class":487},[474,1568,1569],{"class":609},"[] ",[474,1571,1395],{"class":613},[474,1573,1398],{"class":1356},[474,1575,1534],{"class":1401},[474,1577,1578],{"class":609},"([",[474,1580,1581],{"class":613},"''",[474,1583,957],{"class":613},[474,1585,1586],{"class":613}," ''",[474,1588,957],{"class":613},[474,1590,1372],{"class":613},[474,1592,929],{"class":491},[474,1594,1377],{"class":613},[474,1596,957],{"class":613},[474,1598,1372],{"class":613},[474,1600,1601],{"class":491},"-m",[474,1603,1377],{"class":613},[474,1605,957],{"class":613},[474,1607,1372],{"class":613},[474,1609,737],{"class":491},[474,1611,1377],{"class":613},[474,1613,957],{"class":613},[474,1615,1372],{"class":613},[474,1617,1618],{"class":491},"--silent",[474,1620,1377],{"class":613},[474,1622,1623],{"class":609},"])",[474,1625,1380],{"class":613},[255,1627,1628,1629,1632,1633,1636,1637,1639,1640,1636,1643,1646,1647,1652,1653,629,1660,1662],{},"Pass a store as the second argument of ",[265,1630,1631],{},"detectClones"," to reuse token maps between runs: ",[265,1634,1635],{},"MemoryStore"," from ",[265,1638,1521],{}," or ",[265,1641,1642],{},"LevelDBStore",[265,1644,1645],{},"@jscpd\u002Fleveldb-store",". The ",[259,1648,1651],{"href":1649,"rel":1650},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster-v4\u002Fdocs\u002Fapi.md",[263],"API docs"," and ",[259,1654,1657],{"href":1655,"rel":1656},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Ftree\u002Fmaster-v4\u002Fexamples\u002Fapi",[263],[265,1658,1659],{},"examples\u002Fapi",[265,1661,267],{}," branch have complete examples.",[431,1664,1666],{"id":1665},"packages","Packages",[282,1668,1669,1678],{},[285,1670,1671],{},[288,1672,1673,1676],{},[291,1674,1675],{},"Package",[291,1677,644],{},[300,1679,1680,1691,1702,1715,1727,1739,1751,1763,1775,1786],{},[288,1681,1682,1688],{},[305,1683,1684],{},[259,1685,555],{"href":1686,"rel":1687},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fjscpd",[263],[305,1689,1690],{},"CLI and Node.js API",[288,1692,1693,1699],{},[305,1694,1695],{},[259,1696,365],{"href":1697,"rel":1698},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fjscpd-server",[263],[305,1700,1701],{},"REST API and MCP server (Streamable HTTP)",[288,1703,1704,1710],{},[305,1705,1706],{},[259,1707,1521],{"href":1708,"rel":1709},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Fcore",[263],[305,1711,1712,1713],{},"Core detection algorithm, interfaces, ",[265,1714,1635],{},[288,1716,1717,1724],{},[305,1718,1719],{},[259,1720,1723],{"href":1721,"rel":1722},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Ffinder",[263],"@jscpd\u002Ffinder",[305,1725,1726],{},"File discovery, detection orchestration, built-in reporters",[288,1728,1729,1736],{},[305,1730,1731],{},[259,1732,1735],{"href":1733,"rel":1734},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Ftokenizer",[263],"@jscpd\u002Ftokenizer",[305,1737,1738],{},"Source code tokenization (224 formats)",[288,1740,1741,1748],{},[305,1742,1743],{},[259,1744,1747],{"href":1745,"rel":1746},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Fhtml-reporter",[263],"@jscpd\u002Fhtml-reporter",[305,1749,1750],{},"HTML report",[288,1752,1753,1760],{},[305,1754,1755],{},[259,1756,1759],{"href":1757,"rel":1758},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Fbadge-reporter",[263],"@jscpd\u002Fbadge-reporter",[305,1761,1762],{},"SVG badge",[288,1764,1765,1772],{},[305,1766,1767],{},[259,1768,1771],{"href":1769,"rel":1770},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fjscpd-sarif-reporter",[263],"jscpd-sarif-reporter",[305,1773,1774],{},"SARIF for GitHub Code Scanning",[288,1776,1777,1783],{},[305,1778,1779],{},[259,1780,1645],{"href":1781,"rel":1782},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Fleveldb-store",[263],[305,1784,1785],{},"LevelDB persistent store",[288,1787,1788,1795],{},[305,1789,1790],{},[259,1791,1794],{"href":1792,"rel":1793},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@jscpd\u002Fredis-store",[263],"@jscpd\u002Fredis-store",[305,1796,1797],{},"Redis distributed store",[255,1799,1800,1801,1803],{},"All of them are published from the ",[265,1802,267],{}," branch.",[431,1805,1807],{"id":1806},"ci-and-pre-commit","CI and pre-commit",[255,1809,1810,1811,1813],{},"Run the CLI with ",[265,1812,517],{}," in any CI system that has Node.js:",[465,1815,1819],{"className":1816,"code":1817,"language":1818,"meta":470,"style":470},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# GitHub Actions\n- uses: actions\u002Fsetup-node@v4\n  with:\n    node-version: 22\n- run: npx jscpd@4 --threshold 5 --reporters console,sarif --output report .\n- uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  if: always()\n  with:\n    sarif_file: report\u002Fjscpd-sarif.json\n","yaml",[265,1820,1821,1826,1839,1847,1857,1869,1880,1890,1896],{"__ignoreMap":470},[474,1822,1823],{"class":476,"line":477},[474,1824,1825],{"class":480},"# GitHub Actions\n",[474,1827,1828,1831,1834,1836],{"class":476,"line":484},[474,1829,1830],{"class":613},"-",[474,1832,1833],{"class":1411}," uses",[474,1835,895],{"class":613},[474,1837,1838],{"class":491}," actions\u002Fsetup-node@v4\n",[474,1840,1841,1844],{"class":476,"line":501},[474,1842,1843],{"class":1411},"  with",[474,1845,1846],{"class":613},":\n",[474,1848,1849,1852,1854],{"class":476,"line":508},[474,1850,1851],{"class":1411},"    node-version",[474,1853,895],{"class":613},[474,1855,1856],{"class":577}," 22\n",[474,1858,1859,1861,1864,1866],{"class":476,"line":514},[474,1860,1830],{"class":613},[474,1862,1863],{"class":1411}," run",[474,1865,895],{"class":613},[474,1867,1868],{"class":491}," npx jscpd@4 --threshold 5 --reporters console,sarif --output report .\n",[474,1870,1871,1873,1875,1877],{"class":476,"line":1010},[474,1872,1830],{"class":613},[474,1874,1833],{"class":1411},[474,1876,895],{"class":613},[474,1878,1879],{"class":491}," github\u002Fcodeql-action\u002Fupload-sarif@v3\n",[474,1881,1882,1885,1887],{"class":476,"line":1026},[474,1883,1884],{"class":1411},"  if",[474,1886,895],{"class":613},[474,1888,1889],{"class":491}," always()\n",[474,1891,1892,1894],{"class":476,"line":1058},[474,1893,1843],{"class":1411},[474,1895,1846],{"class":613},[474,1897,1898,1901,1903],{"class":476,"line":1090},[474,1899,1900],{"class":1411},"    sarif_file",[474,1902,895],{"class":613},[474,1904,1905],{"class":491}," report\u002Fjscpd-sarif.json\n",[255,1907,1908,1909,1911,1912,1914],{},"The ",[265,1910,411],{}," GitHub Action and the Docker image install the v5 engine. Use the ",[265,1913,417],{}," form when you need the Node.js engine.",[255,1916,1917,1918,1923],{},"Pre-commit hook via the ",[259,1919,1922],{"href":1920,"rel":1921},"https:\u002F\u002Fpre-commit.com",[263],"pre-commit"," framework:",[465,1925,1927],{"className":1816,"code":1926,"language":1818,"meta":470,"style":470},"repos:\n  - repo: local\n    hooks:\n      - id: jscpd\n        name: jscpd - copy\u002Fpaste detector\n        entry: jscpd\n        language: node\n        additional_dependencies: ['jscpd@4']\n        args: [--threshold, \"5\", --reporters, console,silent]\n        pass_filenames: false\n        always_run: true\n",[265,1928,1929,1936,1949,1956,1969,1979,1988,1998,2016,2050,2060],{"__ignoreMap":470},[474,1930,1931,1934],{"class":476,"line":477},[474,1932,1933],{"class":1411},"repos",[474,1935,1846],{"class":613},[474,1937,1938,1941,1944,1946],{"class":476,"line":484},[474,1939,1940],{"class":613},"  -",[474,1942,1943],{"class":1411}," repo",[474,1945,895],{"class":613},[474,1947,1948],{"class":491}," local\n",[474,1950,1951,1954],{"class":476,"line":501},[474,1952,1953],{"class":1411},"    hooks",[474,1955,1846],{"class":613},[474,1957,1958,1961,1964,1966],{"class":476,"line":508},[474,1959,1960],{"class":613},"      -",[474,1962,1963],{"class":1411}," id",[474,1965,895],{"class":613},[474,1967,1968],{"class":491}," jscpd\n",[474,1970,1971,1974,1976],{"class":476,"line":514},[474,1972,1973],{"class":1411},"        name",[474,1975,895],{"class":613},[474,1977,1978],{"class":491}," jscpd - copy\u002Fpaste detector\n",[474,1980,1981,1984,1986],{"class":476,"line":1010},[474,1982,1983],{"class":1411},"        entry",[474,1985,895],{"class":613},[474,1987,1968],{"class":491},[474,1989,1990,1993,1995],{"class":476,"line":1026},[474,1991,1992],{"class":1411},"        language",[474,1994,895],{"class":613},[474,1996,1997],{"class":491}," node\n",[474,1999,2000,2003,2005,2007,2009,2011,2013],{"class":476,"line":1058},[474,2001,2002],{"class":1411},"        additional_dependencies",[474,2004,895],{"class":613},[474,2006,924],{"class":613},[474,2008,1377],{"class":613},[474,2010,528],{"class":491},[474,2012,1377],{"class":613},[474,2014,2015],{"class":613},"]\n",[474,2017,2018,2021,2023,2025,2027,2029,2031,2033,2035,2037,2039,2041,2044,2046,2048],{"class":476,"line":1090},[474,2019,2020],{"class":1411},"        args",[474,2022,895],{"class":613},[474,2024,924],{"class":613},[474,2026,1280],{"class":491},[474,2028,957],{"class":613},[474,2030,960],{"class":613},[474,2032,662],{"class":491},[474,2034,919],{"class":613},[474,2036,957],{"class":613},[474,2038,581],{"class":491},[474,2040,957],{"class":613},[474,2042,2043],{"class":491}," console",[474,2045,957],{"class":613},[474,2047,1287],{"class":491},[474,2049,2015],{"class":613},[474,2051,2052,2055,2057],{"class":476,"line":1105},[474,2053,2054],{"class":1411},"        pass_filenames",[474,2056,895],{"class":613},[474,2058,2059],{"class":1437}," false\n",[474,2061,2062,2065,2067],{"class":476,"line":1124},[474,2063,2064],{"class":1411},"        always_run",[474,2066,895],{"class":613},[474,2068,2069],{"class":1437}," true\n",[431,2071,2073],{"id":2072},"ai-tooling","AI tooling",[436,2075,2076,2082],{},[439,2077,2078,2081],{},[265,2079,2080],{},"--reporters ai"," prints a compact clone list for LLM pipelines and coding agents.",[439,2083,2084,2086],{},[265,2085,365],{}," exposes the detector as MCP tools over Streamable HTTP plus a REST API, so an assistant can check a snippet against your codebase on demand.",[431,2088,2090],{"id":2089},"maintenance-policy","Maintenance policy",[436,2092,2093,2099,2108,2113],{},[439,2094,2095,2096,2098],{},"v4 receives bug fixes and security fixes on ",[265,2097,267],{},". New features land in v5.",[439,2100,2101,2102,2107],{},"Bug reports for v4 go to the shared ",[259,2103,2106],{"href":2104,"rel":2105},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fissues",[263],"issue tracker","; pick \"v4 (TypeScript)\" in the engine field.",[439,2109,2110,2111,1803],{},"Pull requests for v4 must target the ",[265,2112,267],{},[439,2114,2115,2116,338,2121,338,2126,2131],{},"Full v4 documentation: ",[259,2117,2120],{"href":2118,"rel":2119},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster-v4\u002FREADME.md",[263],"README",[259,2122,2125],{"href":2123,"rel":2124},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster-v4\u002Fdocs\u002Ftypescript.md",[263],"CLI reference",[259,2127,2130],{"href":2128,"rel":2129},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster-v4\u002FCHANGELOG.md",[263],"changelog",".",[2133,2134,2135],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":470,"searchDepth":484,"depth":484,"links":2137},[2138,2139,2140,2141,2146,2147,2148,2149,2150],{"id":433,"depth":484,"text":434},{"id":463,"depth":484,"text":15},{"id":539,"depth":484,"text":540},{"id":596,"depth":484,"text":597,"children":2142},[2143,2144,2145],{"id":880,"depth":501,"text":881},{"id":941,"depth":501,"text":145},{"id":1296,"depth":501,"text":1297},{"id":1345,"depth":484,"text":331},{"id":1665,"depth":484,"text":1666},{"id":1806,"depth":484,"text":1807},{"id":2072,"depth":484,"text":2073},{"id":2089,"depth":484,"text":2090},"The Node.js version of jscpd — where it lives, when to use it, and how to install and run it.","md",null,{},{"icon":213},{"title":2157,"description":2158},"jscpd v4 (TypeScript engine)","jscpd v4 is the TypeScript version of the copy\u002Fpaste detector, maintained on the master-v4 branch and published as jscpd@4. Install, CLI, config, reporters, Node.js API, and packages.","BMgUAH6WJuSIXCMi3BGDCHObOaEgEEQCZZUghCuP8Is",[2161,2163],{"title":205,"path":206,"stem":207,"description":2162,"icon":208,"children":-1},"Guide for upgrading from jscpd v4 (TypeScript) to v5 (Rust).",{"title":215,"path":216,"stem":217,"description":2164,"icon":220,"children":-1},"How jscpd v5 compares to other copy\u002Fpaste detectors in speed, format coverage and token efficiency.",{"\u002Fproject\u002Fv4":2166},{"views":2167,"visits":2168},117,81,1795510271661]