Skip to content

Update fs documentation with MDN links for explicit resource managementΒ #59556

@lluisemper

Description

@lluisemper

Affected URL(s)

https://nodejs.org/api/fs.html#fspromisesmkdtempdisposableprefix-options

Description of the problem

Now that this has landed: mdn/content#38027 I think it would be a good opportunity to add the links for explicit resource management. To start with the fs module.

For example, FileHandle operations could reference MDN's await using documentation to show modern resource management patterns alongside traditional try/finally approaches.

And I guess that any other part that uses this could benefit from it too.

I will create a small PR for the fs module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions