Skip to content

Commit da3b938

Browse files
lpincaMylesBorins
authored andcommitted
doc: add added: information for globals
Ref: #6578 Ref: #8964 PR-URL: #8901 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 950cc1d commit da3b938

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

doc/api/globals.md

+55
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ The objects listed here are specific to Node.js. There are a number of
1010
also globally accessible.
1111

1212
## Class: Buffer
13+
<!-- YAML
14+
added: v0.1.103
15+
-->
1316

1417
<!-- type=global -->
1518

@@ -18,6 +21,9 @@ also globally accessible.
1821
Used to handle binary data. See the [buffer section][].
1922

2023
## \_\_dirname
24+
<!-- YAML
25+
added: v0.1.27
26+
-->
2127

2228
<!-- type=var -->
2329

@@ -45,6 +51,9 @@ References to `__dirname` within `b.js` will return
4551
will return `/Users/mjr/app`.
4652

4753
## \_\_filename
54+
<!-- YAML
55+
added: v0.0.1
56+
-->
4857

4958
<!-- type=var -->
5059

@@ -65,24 +74,36 @@ console.log(__filename);
6574
`__filename` isn't actually a global but rather local to each module.
6675

6776
## clearImmediate(immediateObject)
77+
<!-- YAML
78+
added: v0.9.1
79+
-->
6880

6981
<!--type=global-->
7082

7183
[`clearImmediate`] is described in the [timers][] section.
7284

7385
## clearInterval(intervalObject)
86+
<!-- YAML
87+
added: v0.0.1
88+
-->
7489

7590
<!--type=global-->
7691

7792
[`clearInterval`] is described in the [timers][] section.
7893

7994
## clearTimeout(timeoutObject)
95+
<!-- YAML
96+
added: v0.0.1
97+
-->
8098

8199
<!--type=global-->
82100

83101
[`clearTimeout`] is described in the [timers][] section.
84102

85103
## console
104+
<!-- YAML
105+
added: v0.1.100
106+
-->
86107

87108
<!-- type=global -->
88109

@@ -91,6 +112,9 @@ console.log(__filename);
91112
Used to print to stdout and stderr. See the [`console`][] section.
92113

93114
## exports
115+
<!-- YAML
116+
added: v0.1.12
117+
-->
94118

95119
<!-- type=var -->
96120

@@ -103,6 +127,9 @@ when to use `module.exports`.
103127
See the [module system documentation][] for more information.
104128

105129
## global
130+
<!-- YAML
131+
added: v0.1.27
132+
-->
106133

107134
<!-- type=global -->
108135

@@ -114,6 +141,9 @@ variable. In Node.js this is different. The top-level scope is not the global
114141
scope; `var something` inside an Node.js module will be local to that module.
115142

116143
## module
144+
<!-- YAML
145+
added: v0.1.16
146+
-->
117147

118148
<!-- type=var -->
119149

@@ -128,6 +158,9 @@ available through `require()`.
128158
See the [module system documentation][] for more information.
129159

130160
## process
161+
<!-- YAML
162+
added: v0.1.7
163+
-->
131164

132165
<!-- type=global -->
133166

@@ -136,6 +169,9 @@ See the [module system documentation][] for more information.
136169
The process object. See the [`process` object][] section.
137170

138171
## require()
172+
<!-- YAML
173+
added: v0.1.13
174+
-->
139175

140176
<!-- type=var -->
141177

@@ -145,6 +181,9 @@ To require modules. See the [Modules][] section. `require` isn't actually a
145181
global but rather local to each module.
146182

147183
### require.cache
184+
<!-- YAML
185+
added: v0.3.0
186+
-->
148187

149188
* {Object}
150189

@@ -154,6 +193,10 @@ this does not apply to [native addons][], for which reloading will result in an
154193
Error.
155194

156195
### require.extensions
196+
<!-- YAML
197+
added: v0.3.0
198+
deprecated: v0.10.6
199+
-->
157200

158201
> Stability: 0 - Deprecated
159202
@@ -178,23 +221,35 @@ away. However, it may have subtle bugs and complexities that are best
178221
left untouched.
179222

180223
### require.resolve()
224+
<!-- YAML
225+
added: v0.3.0
226+
-->
181227

182228
Use the internal `require()` machinery to look up the location of a module,
183229
but rather than loading the module, just return the resolved filename.
184230

185231
## setImmediate(callback[, arg][, ...])
232+
<!-- YAML
233+
added: v0.9.1
234+
-->
186235

187236
<!-- type=global -->
188237

189238
[`setImmediate`] is described in the [timers][] section.
190239

191240
## setInterval(callback, delay[, arg][, ...])
241+
<!-- YAML
242+
added: v0.0.1
243+
-->
192244

193245
<!-- type=global -->
194246

195247
[`setInterval`] is described in the [timers][] section.
196248

197249
## setTimeout(callback, delay[, arg][, ...])
250+
<!-- YAML
251+
added: v0.0.1
252+
-->
198253

199254
<!-- type=global -->
200255

0 commit comments

Comments
 (0)