Usage in Deno
import { Module } from "node:module";
The register
method is a non-functional stub.
Module(id: string,parent?: Module,)
builtinModules: string[]
createRequire(path: string | URL): NodeRequire
isBuiltin(moduleName: string): boolean
register<Data = any>(): void
register<Data = any>(specifier: string | URL,options?: RegisterOptions<Data>,): void
runMain(): void
wrap(code: string): string