Skip to content

docs: Add example for fs.watch recursive option #65706

Description

@a18-n03

Description

Adds a code example showing recursive file watching with fs.watch.

fs.watch(".", { recursive: true }, (event, filename) => {
  console.log(event, filename);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions