Skip to content

Commit e55ab89

Browse files
dnalborczyknodejs-github-bot
authored andcommitted
doc: add node: url scheme
PR-URL: #40573 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Voltrex <[email protected]>
1 parent 3165eb9 commit e55ab89

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/api/esm.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,11 +892,10 @@ purposes.
892892

893893
```js
894894
// coffeescript-loader.mjs
895-
import { readFile } from 'fs/promises';
896-
import { dirname, extname, resolve as resolvePath } from 'path';
897-
import { cwd } from 'process';
898-
import { fileURLToPath, pathToFileURL } from 'url';
899-
895+
import { readFile } from 'node:fs/promises';
896+
import { dirname, extname, resolve as resolvePath } from 'node:path';
897+
import { cwd } from 'node:process';
898+
import { fileURLToPath, pathToFileURL } from 'node:url';
900899
import CoffeeScript from 'coffeescript';
901900
902901
const baseURL = pathToFileURL(`${cwd()}/`).href;

0 commit comments

Comments
 (0)