GeezerVison is showing github.com — doc: fix formatting of `import.meta.filename` section · nodejs/node@cdb3d01
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/esm.md +5-4Lines changed: 5 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -356,8 +356,9 @@ changes: |
356 | 356 | description: This property is no longer experimental. |
357 | 357 | --> |
358 | 358 |
|
359 | | -* {string} The directory name of the current module. This is the same as the |
360 | | - [`path.dirname()`][] of the [`import.meta.filename`][]. |
| 359 | +* {string} The directory name of the current module. |
| 360 | + |
| 361 | +This is the same as the [`path.dirname()`][] of the [`import.meta.filename`][]. |
361 | 362 |
|
362 | 363 | > **Caveat**: only present on `file:` modules. |
363 | 364 |
|
@@ -375,8 +376,8 @@ changes: |
375 | 376 |
|
376 | 377 | * {string} The full absolute path and filename of the current module, with |
377 | 378 | symlinks resolved. |
378 | | -* This is the same as the [`url.fileURLToPath()`][] of the |
379 | | - [`import.meta.url`][]. |
| 379 | + |
| 380 | +This is the same as the [`url.fileURLToPath()`][] of the [`import.meta.url`][]. |
380 | 381 |
|
381 | 382 | > **Caveat** only local modules support this property. Modules not using the |
382 | 383 | > `file:` protocol will not provide it. |
|