UNPKG

cmpstr-cli

Version:

Simple CLI wrapper for the CmpStr package to normalize and compare strings directly via terminal

25 lines (24 loc) 861 B
/** * @fileoverview * Match command for CmpStr CLI. * * Compares a string or list of strings against a target string and * returns similarity scores. Supports sorting, thresholding, and both * synchronous and asynchronous processing. * * @author Paul Köhler (komed3) * @license MIT */ import { type Command } from 'commander'; /** * Compares the second input against the first string or * list of strings based on similarity. * * @async * @param {string} a - The base input string or list (as string or file path). * @param {string} b - The string to compare against. * @param {Record<string, any>} [opt] - Additional match options. * @param {Command} cmd - The Commander command instance. * @returns {Promise<void>} */ export declare function match(a: string, b: string, opt: Record<string, any> | undefined, cmd: Command): Promise<void>;