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

x/deno2node/src/deps.deno.ts>printNode

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

Prints the provided node using the compiler's printer.

Parameters

node: ts.Node
  • Compiler node.
optional
options: PrintNodeOptions
  • Options.

Returns

string

Prints the provided node using the compiler's printer.

Parameters

node: ts.Node
  • Compiler node.
sourceFile: ts.SourceFile
  • Compiler source file.
optional
options: PrintNodeOptions
  • Options.

Returns

string