Skip to main content
Process.getBuiltinModule - process - Node documentation
method Process.getBuiltinModule

Usage in Deno

import { type Process } from "node:process";
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
Back to top