Skip to main content
SourceTextModule - node__vm.d.ts - Node documentation
class SourceTextModule
extends Module
Unstable

Usage in Deno

```typescript import { SourceTextModule } from "node:node__vm.d.ts"; ```
This feature is only available with the `--experimental-vm-modules` command flag enabled. The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as defined in the ECMAScript specification.

Constructors

new
SourceTextModule(
code: string,
)
Creates a new `SourceTextModule` instance.