Friday, November 13, 2026 4,523 lists 78,994 records on file
List your app or device

  1. Home
  2. Code Clone Detection Tools
  3. @kongyo2/similarity-ts

@kongyo2/similarity-ts

On the record

Accuracy benchmark
The README reports that version 0.7.0 correctly labeled all 300 pairs in its stated benchmark corpus.github.com · read 7 Oct 2026
Analysis modes
Its default modes are functions, types, classes, and overlap, and the README documents options to select modes and restrict scan scope.github.com · read 5 Oct 2026
Analysis targets
It compares functions, types, and classes structurally.github.com · read 7 Oct 2026
Behavioral distinctions
The README says behavior-changing differences such as `.map` versus `.filter` and `async` versus synchronous contracts retain distinct shapes.github.com · read 7 Oct 2026
CI use
The CLI offers a `--fail-on-duplicates` option that exits non-zero when any pair is reported.github.com · read 7 Oct 2026
CLI controls
The CLI supports selecting analysis modes, setting a similarity threshold, filtering file extensions, excluding patterns, and choosing pretty or JSON output.github.com · read 7 Oct 2026
Code style matching
It canonicalizes documented style variants, including arrow functions versus declarations, `.then()` versus `await`, and several loop forms.github.com · read 5 Oct 2026
Exclusions
A declaration can be excluded from the report with a `// similarity-ignore` comment on the preceding line.github.com · read 5 Oct 2026
Install and run
The README’s quick start runs the analyzer with `npx @kongyo2/similarity-ts .`.github.com · read 5 Oct 2026
Intended workflow
The README suggests using the command with an AI coding assistant to find duplicate code patterns and create a refactoring plan.github.com · read 7 Oct 2026
License
The repository identifies its license as MIT.github.com · read 7 Oct 2026
Maker identity
The repository is hosted under the GitHub account `kongyo2`; the opened project pages do not state a maker’s personal or company name, headquarters, or founding date.github.com · read 5 Oct 2026
Output and CI
It supports pretty or JSON output and a `--fail-on-duplicates` option that exits nonzero when any pair is reported.github.com · read 5 Oct 2026
Package form and runtime
The package metadata describes a CLI and library, exposes a command-line binary and JavaScript entry point, and specifies Node.js 20 or newer.github.com · read 5 Oct 2026
Package formats
The package metadata exposes both a `similarity-ts` command-line executable and a JavaScript library entry point with TypeScript declarations.github.com · read 7 Oct 2026
Purpose
The project describes itself as a TypeScript-only similarity analyzer for detecting semantic code similarities.github.com · read 7 Oct 2026
Rename handling
It alpha-renames function parameters, locals, inner functions, and declaration names before comparison, while retaining free identifier names.github.com · read 7 Oct 2026
Runtime requirement
The package metadata specifies Node.js version 20 or newer.github.com · read 7 Oct 2026

Alternatives to @kongyo2/similarity-ts

Every alternative, ranked