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

x/deno2node/src/deps.deno.ts>SourceFile#indent

Compile your Deno project to run on Node.js.
Go to Latest
method SourceFile.prototype.indent
import { SourceFile } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Indents the line at the specified position.

Parameters

pos: number
  • Position.
optional
times: number
  • Times to indent. Specify a negative value to unindent.

Indents the lines within the specified range.

Parameters

positionRange: [number, number]
  • Position range.
optional
times: number
  • Times to indent. Specify a negative value to unindent.