Easy, transparent ”watch mode” for filesystem access (powered by Chokidar) #1377
aleclarson
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made jumpgen, a library that transparently watches any paths you access through its
fs
API. It handles all the nuances, so you can focus on the domain problem of your script, instead of making sure you watch the correct paths (and naturally, spending precious time debugging why your script doesn't rerun when it's supposed to, or why it reruns when it shouldn't). Best of all, it supports glob watching, which was removed in Chokidar v4.I recently documented the entire API, but I've not yet written tests, as I just finished the exploration phase. Before I do so, I'd like to get some last minute feedback on the API design, so I can make any necessary changes.
Give it a try, and let me know what you think!
Beta Was this translation helpful? Give feedback.
All reactions