Skip to content

Possibility for listening for multiple events at once #1420

@Waterspark63

Description

@Waterspark63

Just a quick question, is it possible to listen for multiple events, and react with the same callback? I'm using three instances of chokidar to listen for file changes/creation in folders for console/commands/events, and it would be nice to do something like chokidar.on(['add','change', callback) or similar. Is that possible, or should I just chain .on()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions