node:util/types

#Import

import util_types from "nstdlib/node/util/types";

Note

Behaves like Node.js.

#Support

node:util/types. nstd: some support; Node test suite 61.3% passing. Browser: not tested; export coverage 100%; Node test suite 48.5% passing.

  • nstd: 19/31 of Node's own eligible tests pass under nstd (filed under util, the parent module).
  • Browser: Loads with a minimal process object. 43 of Node's 43 exports are available. No behavior check covers it yet.

#Exports (43)

Every name Node.js exports from this module, and what you get when you read it, as a named import or as a property of the default import:

  • ✅ A value, both ways. An export that throws an error naming the missing feature also counts.
  • ⚠️ A value one way, undefined the other.
  • ❔ undefined both ways.
  • ❌ Not exported at all.
  • – Not measured.
Show all 43 exports
ExportNode.jsBrowser
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✅✅

#Diagnostics

nstdlib running inside Node.js. This isn't an environment it's meant for, so it isn't shown above, but it tells a library problem from an environment one:

  • coverage: 43/43 of the host's export names answer inside host node. Behaviour verified against the host builtin.
  • smoke: Imports in a clean child process.
  • node-suite: 17/34 of Node's own eligible tests pass with ./dist inside host node. A failure there and in the page is the library's, one only in the page is the engine's (filed under util, the parent module).