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

x/lume/deps/outdent.ts>Options

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface Options
import { type Options } from "https://deno.land/x/lume@v1.17.2/deps/outdent.ts";

Properties

optional
trimLeadingNewline: boolean
optional
trimTrailingNewline: boolean
optional
newline: string | null

Normalize all newlines in the template literal to this value.

If null, newlines are left untouched.

Newlines that get normalized are '\r\n', '\r', and '\n'.

Newlines within interpolated values are never normalized.

Although intended for normalizing to '\n' or '\r\n', you can also set to any string; for example ' '.