markmv - v1.39.2
    Preparing search index...

    Function scanMarkdownTree

    • Scans a directory (or a single markdown file) and measures every markdown file found.

      Files are parsed with LinkParser and internal links are checked with LinkValidator in file-existence mode only, so no network access happens. The inbound link count is derived across the whole parsed set: every link whose resolved path names another scanned file increments that file's inbound count, and a file with zero inbound links is an orphan.

      Parameters

      • targetPath: string

        Directory to scan recursively, or a single markdown file

      • options: ScanOptions = {}

        Scan options

      Returns Promise<ScannedMarkdownFile[]>

      Scanned file measurements ordered by relative path, excluding skipped directories

      Error if the target path does not exist or a file cannot be read or parsed