UNPKG

cmpstr-cli

Version:

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

25 lines (24 loc) 835 B
/** * @fileoverview * Pairs command for CmpStr CLI. * * Compares elements at the same index in two lists and returns * similarity scores. Supports both synchronous and asynchronous * processing and verbose output. * * @author Paul Köhler (komed3) * @license MIT */ import { type Command } from 'commander'; /** * Compares elements at the same index in two lists and * outputs similarity scores. * * @async * @param {string} a - The first list as a string or file path. * @param {string} b - The second list as a 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 pairs(a: string, b: string, opt: Record<string, any> | undefined, cmd: Command): Promise<void>;