We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the @parcel/watcher.subscribe function in @parcel/watcher

To help you get started, we’ve selected a few @parcel/watcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github parcel-bundler / parcel / packages / core / fs / src / NodeFS.js View on Github external
watch(
    dir: FilePath,
    fn: (err: ?Error, events: Array) => mixed,
    opts: WatcherOptions,
  ): Promise {
    return watcher.subscribe(dir, fn, opts);
  }

@parcel/watcher

A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.

MIT
Latest version published 12 months ago

Package Health Score

79 / 100
Full package analysis