textconvert
Version:
Public library to convert text into many conventions and formats.
10 lines (9 loc) • 395 B
TypeScript
/**
* Clear punctuations from a string and replaces it with a whitespace character or returns an array of strings.
*
* @param text String input to clear from punctuation.
* @returns Either a string or an array of strings cleared from punctuations based on the arguments passed.
* @example
* clear('Hello, world!'); // 'hello world'
*/
export declare function clear(text: string): string;