UNPKG

normalize-text

Version:

Provides a simple API to normalize texts, white-spaces, paragraphs & diacritics.

15 lines 601 B
/** * Resolve received texts (when receives an `Array`) by normalizing its * white-spaces and its diacritics and transforming to lower-case. * @example * normalizeText(' so there\'s a Way to NORMALIZE '); * //=> "so there\'s a way to normalize" * * normalizeText(['Olá\r\n', 'como está a senhorita?']); * //=> "ola como esta a senhorita?" * @param {string | string[]} values - A `string` or an array of `string` values. * @returns {string} */ declare const normalizeText: (values: string | string[]) => string; export default normalizeText; //# sourceMappingURL=normalizeText.d.ts.map