doc: small grammar correction
This commit improves the grammar of one sentence in the ESM documentation. PR-URL: https://github.com/nodejs/node/pull/28669 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
0796f0e268
commit
440a344f68
@ -278,8 +278,8 @@ These CommonJS variables are not available in ES modules.
|
||||
|
||||
`require` can be imported into an ES module using [`module.createRequire()`][].
|
||||
|
||||
An equivalent for variable `__filename` and `__dirname` can be created inside
|
||||
each file with [`import.meta.url`][].
|
||||
Equivalents of `__filename` and `__dirname` can be created inside of each file
|
||||
via [`import.meta.url`][].
|
||||
|
||||
```js
|
||||
import { fileURLToPath } from 'url';
|
||||
|
Loading…
x
Reference in New Issue
Block a user