mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
doc: add node: url scheme
PR-URL: https://github.com/nodejs/node/pull/40573 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
1 parent
3165eb9dc8
commit
e55ab893e4
1 file changed
+4
-5
+4
-5
@@ -892,11 +892,10 @@ purposes.
|
||||
|
||||
```js
|
||||
// coffeescript-loader.mjs
|
||||
import { readFile } from 'fs/promises';
|
||||
import { dirname, extname, resolve as resolvePath } from 'path';
|
||||
import { cwd } from 'process';
|
||||
import { fileURLToPath, pathToFileURL } from 'url';
|
||||
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { dirname, extname, resolve as resolvePath } from 'node:path';
|
||||
import { cwd } from 'node:process';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
import CoffeeScript from 'coffeescript';
|
||||
|
||||
const baseURL = pathToFileURL(`${cwd()}/`).href;
|
||||
|
||||
Reference in new issue
Block a user