node:sys
#Import
import sys from "nstdlib/node/sys";Note
The module loads, but its behavior hasn't been tested yet.
#Support
- nstd: 1/1 of Node's own eligible tests pass under nstd.
- Browser: Loads with a minimal
processobject. 37 of Node's 37 exports are available. No behavior check covers it yet.
#Exports (37)
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,
undefinedthe other. - ❔
undefinedboth ways. - ❌ Not exported at all.
- – Not measured.
| Export | Node.js | Browser |
|---|---|---|
MIMEParams | ✅ | ✅ |
MIMEType | ✅ | ✅ |
TextDecoder | ✅ | ✅ |
TextEncoder | ✅ | ✅ |
_errnoException | ✅ | ✅ |
_exceptionWithHostPort | ✅ | ✅ |
_extend | ✅ | ✅ |
aborted | ✅ | ✅ |
callbackify | ✅ | ✅ |
convertProcessSignalToExitCode | ✅ | ✅ |
debounce | ✅ | ✅ |
debug | ✅ | ✅ |
debuglog | ✅ | ✅ |
deprecate | ✅ | ✅ |
diff | ✅ | ✅ |
format | ✅ | ✅ |
formatWithOptions | ✅ | ✅ |
getCallSites | ✅ | ✅ |
getSystemErrorMap | ✅ | ✅ |
getSystemErrorMessage | ✅ | ✅ |
getSystemErrorName | ✅ | ✅ |
inherits | ✅ | ✅ |
inspect | ✅ | ✅ |
isArray | ✅ | ✅ |
isDeepStrictEqual | ✅ | ✅ |
markPromiseAsHandled | ✅ | ✅ |
parseArgs | ✅ | ✅ |
parseEnv | ✅ | ✅ |
promisify | ✅ | ✅ |
setTraceSigInt | ✅ | ✅ |
stripVTControlCharacters | ✅ | ✅ |
styleText | ✅ | ✅ |
throttle | ✅ | ✅ |
toUSVString | ✅ | ✅ |
transferableAbortController | ✅ | ✅ |
transferableAbortSignal | ✅ | ✅ |
types | ✅ | ✅ |
#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: 37/37 of the host's export names answer inside host node. Imports. Behaviour not exercised by the suite.smoke: Imports in a clean child process.node-suite: 1/1 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.