Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/eta/src/utils.ts>trimWS

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
function trimWS
import { trimWS } from "https://deno.land/x/eta@v3.0.3/src/utils.ts";

Takes a string within a template and trims it, based on the preceding tag's whitespace control and config.autoTrim

Parameters

str: string
config: EtaConfig
wsLeft: string | false
optional
wsRight: string | false

Returns

string