{"size": 478, "ext": "js", "max_stars_repo_path": "share/watch.js", "max_stars_repo_name": "stavros-liaskos/monitoring", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "share/watch.js", "max_issues_repo_name": "stavros-liaskos/monitoring", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "share/watch.js", "max_forks_repo_name": "stavros-liaskos/monitoring", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.875, "max_line_length": 67, "alphanum_fraction": 0.5878661088}
var watch = require('watch');

watch.createMonitor('./source', function (monitor) {
    monitor.files['./source/timer.js'] // Stat object for my zshrc.
    monitor.on("created", function (f, stat) {
        // Handle new files
    })
    monitor.on("changed", function (f, curr, prev) {
        // Handle file changes
        console.log("poka")
    })
    monitor.on("removed", function (f, stat) {
        // Handle removed files
    })
    monitor.stop(); // Stop watching
})