Sha256: 4d5d3d574cf1521e8df341328b471e314b7e2da9c4c37b656517afcf92018359
Contents?: true
Size: 845 Bytes
Versions: 9
Compression:
Stored size: 845 Bytes
Contents
var fs, watch, watch_original; watch = require('../main'); watch_original = require('watch'); fs = require('fs'); watch.createMonitor(__dirname, function (monitor) { monitor.on("created", function (f, stat) { console.log(f + " created"); }); monitor.on("changed", function (f, curr, prev) { console.log(f + " changed"); }); monitor.on("removed", function (f, stat) { console.log(f + " removed"); }); }); watch_original.createMonitor(__dirname, function (monitor) { monitor.on("created", function (f, stat) { console.log("ORIGINAL: " + f + " created"); }); monitor.on("changed", function (f, curr, prev) { console.log("ORIGINAL: " + f + " changed"); }); monitor.on("removed", function (f, stat) { console.log("ORIGINAL: " + f + " removed"); }); });
Version data entries
9 entries across 9 versions & 3 rubygems