![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Simple file/directory watcher. (Node.js)
It's quite simple to create a wtchr for a directory.
wtchr(path, [options]);
true
500
/(\/\.DS_Store$)/
var watch = wtchr('/my/watch/base/directory');
Wtchr provides simple event bindings. The event API is quite similar to jQuery events, so most of JS developers are familiar with it.
bind an event
.on(type, [selector], handler(path, curr lstat, prev lstat))
unbind an event
.off(type, [selector], [handler(path, curr lstat, prev lstat)])
create
/ change
/ delete
var watch = wtchr('/my/watch/base/directory')
watch.on("create", "*.js", function (path, curr, prev) {
console.log("New file: " + path);
});
watch.off("create");
Chaining:
wtchr('/my/watch/base/directory')
.on("create", "*.js", function (path, curr, prev) {
console.log("New file: " + path);
})
.on("change", "*.js", function (path, curr, prev) {
console.log("File changed: " + path);
})
.on("delete", "*.js", function (path, curr, prev) {
console.log("File deleted: " + path);
})
.off("create")
.off("delete");
Simply destroy the wtchr object with the destroy method.
.destroy()
var watch = wtchr('/my/watch/base/directory')
watch.destroy();
FAQs
Simple file/directory watcher.
The npm package wtchr receives a total of 313 weekly downloads. As such, wtchr popularity was classified as not popular.
We found that wtchr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.