Function watch

  • Parameters

    • path: PathLike
    • Optionallistener: ((event: string, filename: string) => any)
        • (event, filename): any
        • Parameters

          • event: string
          • filename: string

          Returns any

    Returns FSWatcher

  • Parameters

    • path: PathLike
    • options: {
          persistent?: boolean;
      }
      • Optionalpersistent?: boolean
    • Optionallistener: ((event: string, filename: string) => any)
        • (event, filename): any
        • Parameters

          • event: string
          • filename: string

          Returns any

    Returns FSWatcher