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

x/deno2node/src/deps.deno.ts>CodeBlockWriter#setIndentationLevel

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

Sets the current indentation level.

Parameters

indentationLevel: number
  • Indentation level to be at.

Sets the current indentation using the provided indentation text.

Parameters

whitespaceText: string
  • Gets the indentation level from the indentation text.