Skip to main content
Module

x/code_block_writer/mod.ts>Options

Code writer for JavaScript and TypeScript code.
Go to Latest
interface Options
import { type Options } from "https://deno.land/x/code_block_writer@11.0.0/mod.ts";

Options for the writer.

Properties

newLine: "\n" | "\r\n"

Newline character.

indentNumberOfSpaces: number

Number of spaces to indent when useTabs is false.

useTabs: boolean

Whether to use tabs (true) or spaces (false).

useSingleQuote: boolean

Whether to use a single quote (true) or double quote (false).