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

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

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

Options for printing a node.

Properties

optional
removeComments: boolean

Whether to remove comments or not.

optional
newLineKind: NewLineKind

New line kind.

Defaults to line feed.

optional
emitHint: EmitHint

From the compiler api: "A value indicating the purpose of a node. This is primarily used to distinguish between an Identifier used in an expression position, versus an Identifier used as an IdentifierName as part of a declaration. For most nodes you should just pass Unspecified."

Defaults to Unspecified.

optional
scriptKind: ScriptKind

The script kind.