UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.

21 lines 814 B
/** * * Extracts all numbers from a string as array of numbers. * @param input - The string to extract numbers from. * @returns An array of numbers found in the string. */ export declare const extractNumbersFromString: (input: string) => number[]; /** * * Computes the Levenshtein distance between two strings. * @param a - First string. * @param b - Second string. * @returns The Levenshtein distance between the two strings. */ export declare const getLevenshteinDistance: (a: string, b: string) => number; /** * * Counts the number of words in a string, supporting multiple languages and scripts. * * @param text - The input string to count words from. * @returns Number of words (Unicode-aware). */ export declare function countWords(text: string): number; //# sourceMappingURL=utilities.d.ts.map