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

x/dax/src/vendor/outdent.ts>Options

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
interface Options
import { type Options } from "https://deno.land/x/dax@0.39.2/src/vendor/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 ' '.