File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ import _ from 'data:application/json,"world!"';
201
201
#### ` node: ` Imports
202
202
203
203
<!-- YAML
204
+ changes:
205
+ - version: REPLACEME
206
+ pr-url: https://github.com/nodejs/node/pull/37246
207
+ description: Added `node:` import support to `require(...)`.
204
208
added:
205
209
- v14.13.1
206
210
- v12.20.0
@@ -210,10 +214,14 @@ added:
210
214
modules. This URL scheme allows for builtin modules to be referenced by valid
211
215
absolute URL strings.
212
216
213
- ``` js
217
+ ``` js esm
214
218
import fs from ' node:fs/promises' ;
215
219
```
216
220
221
+ ``` js cjs
222
+ const fs = require (' node:fs/promises' );
223
+ ```
224
+
217
225
## Builtin modules
218
226
219
227
[ Core modules] [ ] provide named exports of their public API. A
Original file line number Diff line number Diff line change @@ -280,6 +280,12 @@ irrespective of whether or not `./foo` and `./FOO` are the same file.
280
280
## Core modules
281
281
282
282
<!-- type=misc-->
283
+ <!-- YAML
284
+ changes:
285
+ - version: REPLACEME
286
+ pr-url: https://github.com/nodejs/node/pull/37246
287
+ description: Added `node:` import support to `require(...)`.
288
+ -->
283
289
284
290
Node.js has several modules compiled into the binary. These modules are
285
291
described in greater detail elsewhere in this documentation.
You can’t perform that action at this time.
0 commit comments