Skip to content

esm: graduate import.meta properties #58011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,12 @@ properties. It is only supported in ES modules.
added:
- v21.2.0
- v20.11.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/58011
description: This property is no longer experimental.
-->

> Stability: 1.2 - Release candidate

* {string} The directory name of the current module. This is the same as the
[`path.dirname()`][] of the [`import.meta.filename`][].

Expand All @@ -365,10 +367,12 @@ added:
added:
- v21.2.0
- v20.11.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/58011
description: This property is no longer experimental.
-->

> Stability: 1.2 - Release candidate

* {string} The full absolute path and filename of the current module, with
symlinks resolved.
* This is the same as the [`url.fileURLToPath()`][] of the
Expand Down
Loading