GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc,tools: enforce use of `node:` prefix · nodejs/node@2df7bc0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • async_hooks.md
    • timers.md
    • wasi.md
    • worker_threads.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ import {
704704
executionAsyncId,
705705
executionAsyncResource,
706706
createHook,
707-
} from 'async_hooks';
707+
} from 'node:async_hooks';
708708
const sym = Symbol('state'); // Private symbol to avoid pollution
709709

710710
createHook({
Collapse file

‎doc/api/timers.md‎

Copy file name to clipboardExpand all lines: doc/api/timers.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ import {
374374
setTimeout,
375375
setImmediate,
376376
setInterval,
377-
} from 'timers/promises';
377+
} from 'node:timers/promises';
378378
```
379379

380380
```cjs
@@ -404,7 +404,7 @@ added: v15.0.0
404404
```mjs
405405
import {
406406
setTimeout,
407-
} from 'timers/promises';
407+
} from 'node:timers/promises';
408408

409409
const res = await setTimeout(100, 'result');
410410

@@ -438,7 +438,7 @@ added: v15.0.0
438438
```mjs
439439
import {
440440
setImmediate,
441-
} from 'timers/promises';
441+
} from 'node:timers/promises';
442442

443443
const res = await setImmediate('result');
444444

@@ -479,7 +479,7 @@ or implicitly to keep the event loop alive.
479479
```mjs
480480
import {
481481
setInterval,
482-
} from 'timers/promises';
482+
} from 'node:timers/promises';
483483

484484
const interval = 100;
485485
for await (const startTime of setInterval(interval, Date.now())) {
Collapse file

‎doc/api/wasi.md‎

Copy file name to clipboardExpand all lines: doc/api/wasi.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ operating system via a collection of POSIX-like functions.
1717

1818
```mjs
1919
import { readFile } from 'node:fs/promises';
20-
import { WASI } from 'wasi';
20+
import { WASI } from 'node:wasi';
2121
import { argv, env } from 'node:process';
2222

2323
const wasi = new WASI({
@@ -40,7 +40,7 @@ wasi.start(instance);
4040
```cjs
4141
'use strict';
4242
const { readFile } = require('node:fs/promises');
43-
const { WASI } = require('wasi');
43+
const { WASI } = require('node:wasi');
4444
const { argv, env } = require('node:process');
4545
const { join } = require('node:path');
4646

Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ Node.js event loop.
13051305
import {
13061306
Worker,
13071307
isMainThread,
1308-
} from 'worker_threads';
1308+
} from 'node:worker_threads';
13091309

13101310
if (isMainThread) {
13111311
new Worker(new URL(import.meta.url));

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.