UNPKG

cmpstr-cli

Version:

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

22 lines (21 loc) 722 B
/** * @fileoverview * Matrix command for CmpStr CLI. * * Computes a similarity matrix for all combinations within the input list. * Supports both synchronous and asynchronous processing. * * @author Paul Köhler (komed3) * @license MIT */ import { type Command } from 'commander'; /** * Computes a similarity matrix for all combinations within the input list. * * @async * @param {string} input - The input list as a string or file path. * @param {Record<string, any>} [opt] - Additional matrix options. * @param {Command} cmd - The Commander command instance. * @returns {Promise<void>} */ export declare function matrix(input: string, opt: Record<string, any> | undefined, cmd: Command): Promise<void>;