Deprecated Use Deno.watchFs() instead!
Use Deno.watchFs()
instead!
A pure deno file watcher.
import watch from "https://deno.land/x/[email protected]/mod.ts";
for await (const changes of watch("src")) {
console.log(changes.added);
console.log(changes.modified);
console.log(changes.deleted);
}
const end = watch("src").start(changes => {
console.log(changes);
});
Written in the source code.
test Benchmark
generated 10930 files.
[Add]
took 183ms to traverse 11232 files
took 147ms to traverse 11542 files
took 142ms to traverse 11845 files
[Modify]
took 139ms to traverse 11891 files
took 136ms to traverse 11891 files
took 154ms to traverse 11891 files
[Delete]
took 138ms to traverse 11608 files
took 134ms to traverse 11274 files
took 145ms to traverse 10960 files
... ok
Try yourself:
deno https://deno.land/x/watch/test.ts --allow-write
Author: jinjor
Source Code: https://github.com/jinjor/deno-watch
Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)
A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!
A work-in-progress Javascript maze generator module, compatible with both Deno and Node.
Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.
What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings