fs-watch-observable
v2.0.0
Published
fs.Watch but it returns a RxJS observable
Downloads
36
Maintainers
Readme
This is a drop-in replacement for fs.Watch
that emits change events on an Observable stream.
merge(of(null /* first run */), watchObservable(Files.Settings)).pipe(
debounceTime(50),
mergeMap(loadMods),
map(updateLoadedMods)
).subscribe(console.log);