node:console
#Import
import console from "nstdlib/console";Note
The module imports. Its behavior has not been tested.
#Runtime support
| Where it runs | Status | Export coverage | Details |
|---|---|---|---|
| nstd | ⚠️ some support | – | 17/22 of Node's own eligible tests pass under nstd. |
| Browser | ⚠️ some support | 77% of Node.js | It imports with the small process shim. 24/31 Node.js exports are available. No module-specific behavior test ran. |
| Node.js (host) | ❔ not tested | 77% of Node.js | 24/31 exports. |
#Exports (24 of 31)
Each cell shows what happens when code reads an export:
- ✅ Available through every import style. A named error also counts.
- ⚠️ Available through only some import styles.
- ❔ The export exists but has no value.
- ❌ The export does not exist.
- – This environment was not measured.
| Export | Node.js | nstdlib | browser |
|---|---|---|---|
Console | ✅ | ✅ | ✅ |
_ignoreErrors | ✅ | ✅ | ✅ |
_stderr | ✅ | ❌ | ❌ |
_stderrErrorHandler | ✅ | ✅ | ✅ |
_stdout | ✅ | ❌ | ❌ |
_stdoutErrorHandler | ✅ | ✅ | ✅ |
_times | ✅ | ✅ | ✅ |
assert | ✅ | ✅ | ✅ |
clear | ✅ | ✅ | ✅ |
context | ✅ | ❔ | ❌ |
count | ✅ | ✅ | ✅ |
countReset | ✅ | ✅ | ✅ |
createTask | ✅ | ❔ | ❌ |
debug | ✅ | ✅ | ✅ |
dir | ✅ | ✅ | ✅ |
dirxml | ✅ | ✅ | ✅ |
error | ✅ | ✅ | ✅ |
group | ✅ | ✅ | ✅ |
groupCollapsed | ✅ | ✅ | ✅ |
groupEnd | ✅ | ✅ | ✅ |
info | ✅ | ✅ | ✅ |
log | ✅ | ✅ | ✅ |
profile | ✅ | ❔ | ❌ |
profileEnd | ✅ | ❔ | ❌ |
table | ✅ | ✅ | ✅ |
time | ✅ | ✅ | ✅ |
timeEnd | ✅ | ✅ | ✅ |
timeLog | ✅ | ✅ | ✅ |
timeStamp | ✅ | ❔ | ❌ |
trace | ✅ | ✅ | ✅ |
warn | ✅ | ✅ | ✅ |
#Missing exports (7)
These exports exist in Node.js but not in nstdlib:
_stderr_stdoutcontext (undefined)createTask (undefined)profile (undefined)profileEnd (undefined)timeStamp (undefined)