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:
Daniel Nalborczyk authored and Node.js GitHub Bot committed 2021-10-27 09:15:20 +00:00
1 parent 3165eb9dc8
commit e55ab893e4
1 file changed
+4 -5
+4 -5
View File
@@ -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;