Skip to main content
Process.getBuiltinModule - node__process.d.ts - Node documentation
method Process.getBuiltinModule

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
Process.getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID]
Provides a way to load built-in modules in a globally available function.

Type Parameters

ID extends keyof BuiltInModule

Parameters

id: ID
ID of the built-in module being requested.

Return Type

BuiltInModule[ID]
Process.getBuiltinModule(id: string): object | undefined

Parameters

id: string

Return Type

object | undefined