Skip to main content
Module

x/outdent/mod.ts>Options

Remove indentation from ES6 template strings
Very Popular
Latest
interface Options
import { type Options } from "https://deno.land/x/outdent@v0.8.0/mod.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 ' '.