node:util
Source: lib/node/util.js
Node's util. Loaded for node:util; the bare util stays qjs-modules' own helper module (util), which this one re-exports except where Node's shapes differ.
import { inspect, format, promisify, parseArgs, styleText } from 'node:util';Limits:
inspect()shows no Proxy target or handler, no Map/Set iterator contents and no WeakMap/WeakSet entries (the engine cannot read them)types.isProxy,isExternal,isKeyObject,isCryptoKeyare always falsegetCallSites()is parsed fromError().stack,scriptIdis'0'
Export list
Generated by utilities/doc-api.js from the node_util dump of utilities/api-surface.sh: 245 members. Edit the text above this block, not the block.
Functions: _errnoException(), _exceptionWithHostPort(), _extend(), aborted(), callbackify(), convertProcessSignalToExitCode(), debounce(), debug(), debuglog(), deprecate(), diff(), format(), formatWithOptions(), getCallSite(), getCallSites(), getSystemErrorMap(), getSystemErrorMessage(), getSystemErrorName(), inherits(), inspect(), isArray(), isBoolean(), isBuffer(), isDate(), isDeepStrictEqual(), isError(), isFunction(), isNull(), isNullOrUndefined(), isNumber(), isObject(), isPartialDeepStrictEqual(), isPrimitive(), isRegExp(), isString(), isSymbol(), isUndefined(), log(), markPromiseAsHandled(), parseArgs(), parseEnv(), promisify(), setTraceSigInt(), stripVTControlCharacters(), styleText(), throttle(), toUSVString(), transferableAbortController(), transferableAbortSignal()
Values: inspectCustom
MIMEParams
class, constructible
- static methods:
_parse() - methods:
delete(),entries(),get(),has(),keys(),set(),toJSON(),toString(),values(),[Symbol.iterator]()
MIMEType
class, constructible
- static methods:
parse() - methods:
toJSON(),toString() - properties:
essence (get),params (get),subtype (get/set),type (get/set)
TextDecoder
class, constructible
- methods:
decode() - properties:
buffered (get),encoding (get),endian (get),fatal (get),ignoreBOM (get),[Symbol.toStringTag]
TextEncoder
class, constructible
- methods:
encode(),encodeInto() - properties:
encoding (get),[Symbol.toStringTag] (get)
default
object
- static methods:
MIMEParams(),MIMEType(),TextDecoder(),TextEncoder(),_errnoException(),_exceptionWithHostPort(),_extend(),aborted(),callbackify(),convertProcessSignalToExitCode(),debounce(),debug(),debuglog(),deprecate(),diff(),format(),formatWithOptions(),getCallSite(),getCallSites(),getSystemErrorMap(),getSystemErrorMessage(),getSystemErrorName(),inherits(),inspect(),isArray(),isBoolean(),isBuffer(),isDate(),isDeepStrictEqual(),isError(),isFunction(),isNull(),isNullOrUndefined(),isNumber(),isObject(),isPartialDeepStrictEqual(),isPrimitive(),isRegExp(),isString(),isSymbol(),isUndefined(),log(),markPromiseAsHandled(),parseArgs(),parseEnv(),promisify(),setTraceSigInt(),stripVTControlCharacters(),styleText(),throttle(),toUSVString(),transferableAbortController(),transferableAbortSignal() - static values:
inspectColors,inspectCustom,types
inspectColors
object
- static methods:
bgBlackBright(),bgGrey(),blackBright(),conceal(),crossedOut(),crossedout(),doubleUnderline(),faint(),grey(),strikeThrough(),swapColors(),swapcolors() - static values:
bgBlack,bgBlue,bgBlueBright,bgCyan,bgCyanBright,bgGray,bgGreen,bgGreenBright,bgMagenta,bgMagentaBright,bgRed,bgRedBright,bgWhite,bgWhiteBright,bgYellow,bgYellowBright,black,blink,blue,blueBright,bold,cyan,cyanBright,dim,doubleunderline,framed,gray,green,greenBright,hidden,inverse,italic,magenta,magentaBright,overlined,red,redBright,reset,strikethrough,underline,white,whiteBright,yellow,yellowBright
types
object
- static methods:
isAnyArrayBuffer(),isArgumentsObject(),isArrayBuffer(),isArrayBufferView(),isAsyncFunction(),isBigInt64Array(),isBigIntObject(),isBigUint64Array(),isBooleanObject(),isBoxedPrimitive(),isCryptoKey(),isDataView(),isDate(),isExternal(),isFloat16Array(),isFloat32Array(),isFloat64Array(),isGeneratorFunction(),isGeneratorObject(),isInt16Array(),isInt32Array(),isInt8Array(),isKeyObject(),isMap(),isMapIterator(),isModuleNamespaceObject(),isNativeError(),isNumberObject(),isPromise(),isProxy(),isRegExp(),isSet(),isSetIterator(),isSharedArrayBuffer(),isStringObject(),isSymbolObject(),isTypedArray(),isUint16Array(),isUint32Array(),isUint8Array(),isUint8ClampedArray(),isWeakMap(),isWeakSet()