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

x/deno2node/src/deps.deno.ts>ModuleDeclaration#rename

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

Renames the module name.

Note: The TS compiler does not update module declarations for string literal module names unfortunately.

Parameters

newName: string
  • New name.
optional
options: RenameOptions
  • Options for renaming.