cmpstr-cli
Version:
Simple CLI wrapper for the CmpStr package to normalize and compare strings directly via terminal
23 lines (22 loc) • 808 B
TypeScript
/**
* @fileoverview
* Compare command for CmpStr CLI.
*
* Compares two strings using a selected similarity metric and outputs the result.
* Supports both synchronous and asynchronous processing and verbose output.
*
* @author Paul Köhler (komed3)
* @license MIT
*/
import { type Command } from 'commander';
/**
* Compares two input strings and outputs their similarity score.
*
* @async
* @param {string} a - The first input string or file path.
* @param {string} b - The second input string or file path.
* @param {Record<string, any>} [opt] - Additional options for comparison.
* @param {Command} cmd - The Commander command instance.
* @returns {Promise<void>}
*/
export declare function compare(a: string, b: string, opt: Record<string, any> | undefined, cmd: Command): Promise<void>;