normalize-text
Version:
Provides a simple API to normalize texts, white-spaces, paragraphs & diacritics.
22 lines • 779 B
TypeScript
/**
* Normalize all white-space characters and remove trailing ones received text.
* @example
* normalizeWhiteSpaces`It is ${temperature}\n degree\r outside. `
* //=> 'It is 25 degree outside.'
* @param parts
* @param values
*/
declare function normalizeWhiteSpaces(parts: TemplateStringsArray, ...values: unknown[]): string;
/**
* Normalize all white-space characters and remove trailing ones received text.
* @example
* normalizeWhiteSpaces(' What exactly is it? ');
* //=> "What exactly is it?"
*
* normalizeWhiteSpaces('Hi, how is \r\n everything \t?');
* //=> 'Hi, how is everything ?'
* @param text
*/
declare function normalizeWhiteSpaces(text: string): string;
export default normalizeWhiteSpaces;
//# sourceMappingURL=normalizeWhiteSpaces.d.ts.map