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

x/libpkgx/src/deps.ts>outdent.Options

bringing the entire open source ecosystem to your node and deno apps
Very Popular
Go to Latest
interface outdent.Options
import { type outdent } from "https://deno.land/x/libpkgx@v0.16/src/deps.ts";
const { Options } = outdent;

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 ' '.