diff --git a/doc/api/process.md b/doc/api/process.md index 0a7f85700ae8..3250bdf0eeaf 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1513,6 +1513,18 @@ emitMyWarning(); // Emits nothing ``` +## `process.entrypoint` + + + +* Type: {string | undefined} + +The URL of the entry point that Node.js was started with, such as +`'file:///path/to/app.js'`. Worker threads inherit this value. If Node.js was +started without an entry point, such as in the REPL, the value is {undefined}. + ## `process.env`