Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/mod.ts>cleanText

Useful snippet collection.
Go to Latest
function cleanText
import { cleanText } from "https://deno.land/x/simple_utility@v1.5.2/mod.ts";

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

Examples

Example 1

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

Parameters

data: string

Returns

string