- Node.js v14.16.1 Documentation
- #">Global objects#
- #">Class:
Buffer# - #">
__dirname# - #">
__filename# - #">
clearImmediate(immediateObject)# - #">
clearInterval(intervalObject)# - #">
clearTimeout(timeoutObject)# - #">
console# - #">
exports# - #">
global# - #">
module# - #">
process# - #">
queueMicrotask(callback)# - #">
require()# - #">
setImmediate(callback[, ...args])# - #">
setInterval(callback, delay[, ...args])# - #">
setTimeout(callback, delay[, ...args])# - #">
TextDecoder# - #">
TextEncoder# - #">
URL# - #">
URLSearchParams# - #">
WebAssembly#
- #">Class:
Node.js v14.16.1 Documentation
Table of Contents 目录
Global objects 全局对象
- Class:
Buffer __dirname__filenameclearImmediate(immediateObject)clearInterval(intervalObject)clearTimeout(timeoutObject)consoleexportsglobalmoduleprocessqueueMicrotask(callback)require()setImmediate(callback[, ...args])setInterval(callback, delay[, ...args])setTimeout(callback, delay[, ...args])TextDecoderTextEncoderURLURLSearchParamsWebAssemblyGlobal objects#
These objects are available in all modules. The following variables may appear to be global but are not. They exist only in the scope of modules, see the module system documentation:
- Class:
__filenameexportsmodulerequire()
The objects listed here are specific to Node.js. There are built-in objects that are part of the JavaScript language itself, which are also globally accessible.
Class: Buffer#
Added in: v0.1.103
Used to handle binary data. See the buffer section.
__dirname#
This variable may appear to be global but is not. See __dirname.
__filename#
This variable may appear to be global but is not. See __filename.
clearImmediate(immediateObject)#
Added in: v0.9.1clearImmediate is described in the timers section.
clearInterval(intervalObject)#
Added in: v0.0.1clearInterval is described in the timers section.
clearTimeout(timeoutObject)#
Added in: v0.0.1clearTimeout is described in the timers section.
console#
Added in: v0.1.100
