We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The new function Deno.fsEvents can watch file changes:
Deno.fsEvents
const iter = Deno.fsEvents("./mod.ts"); for await (const event of iter) { console.log(">>>> event", event); //e.g. { kind: "modify", paths: [ "/Users/mikaello/mod.ts" ] } }
and possibly make the implementation in this repo simpler, or even replace it completely.
UPDATE: fsEvents is renamed to watchFs.
fsEvents
watchFs
The text was updated successfully, but these errors were encountered:
Or watchFs:
const watcher = Deno.watchFs(Deno.cwd()); for await (const event of watcher) { console.log(event); // { kind: "modify", paths: [ "/Users/konsumer/denodemo/watch.ts" ] } }
This example is from the docs
Sorry, something went wrong.
@konsumer great catch, Deno.watchFs is actually the same function, it recently changed name (I just figured out) :-)
Deno.watchFs
Sorry for the delay. Just updated the doc to inform people to use the new API instead. Thank you!
No branches or pull requests
The new function
Deno.fsEvents
can watch file changes:and possibly make the implementation in this repo simpler, or even replace it completely.
UPDATE:
fsEvents
is renamed towatchFs
.The text was updated successfully, but these errors were encountered: