Skip to content

restoreNodeTextCodecGlobals

Defines each of TextEncoder and TextDecoder on the target from node:util, unless the target already has it.

Import:

import { restoreNodeTextCodecGlobals } from '@mnaoumov/obsidian-dev-toolkit/node-text-codec-globals';

Signature:

function restoreNodeTextCodecGlobals(target: object): void

Parameters:

Parameter Type Description
target object The global object to fill in.

Returns: void