Skip to main content
Module

x/simple_utility/mod.pure.ts>cleanText

Simplify processing for Deno.
Go to Latest
function cleanText
import { cleanText } from "https://deno.land/x/simple_utility@v2.0.10/mod.pure.ts";

Clean up text with fixWidth() and trimExtend().

Examples

Example 1

const format = cleanText("1  +  1  =  2  ");

Parameters

data: string

Returns

string