Skip to content

Commit 685682f

Browse files
doc: add process.setTitle() reference in process.title docs
Add a cross-reference at the end of the process.title section to point to process.setTitle() as the new alternative API. Signed-off-by: Jonathan Lopes <[email protected]>
1 parent 813e7b8 commit 685682f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/api/process.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4308,6 +4308,8 @@ Assigning a value to `process.title` might not result in an accurate label
43084308
within process manager applications such as macOS Activity Monitor or Windows
43094309
Services Manager.
43104310
4311+
As an alternative to direct assignment, use [`process.setTitle()`][].
4312+
43114313
## `process.setTitle(title)`
43124314
43134315
<!-- YAML
@@ -4650,6 +4652,7 @@ cases:
46504652
[`process.hrtime()`]: #processhrtimetime
46514653
[`process.hrtime.bigint()`]: #processhrtimebigint
46524654
[`process.kill()`]: #processkillpid-signal
4655+
[`process.setTitle()`]: #processsettitletitle
46534656
[`process.setUncaughtExceptionCaptureCallback()`]: #processsetuncaughtexceptioncapturecallbackfn
46544657
[`process.title`]: #processtitle
46554658
[`promise.catch()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch

0 commit comments

Comments
 (0)