Skip to main content
Module

x/code_block_writer/mod.ts>default#indent

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

Indents the code one level for the current line.

Parameters

optional
times: number

Indents a block of code.

Parameters

block: () => void
  • Block to indent.