{"bugs":{"url":"https://github.com/venalis/node-watch/issues"},"dist":{"shasum":"35ad684eac73fc0895e483e5fb6dd26d578700d9","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.3.2.tgz","integrity":"sha512-99ce9ao3KrUHRkRSSqmWk8xf7ulZTy5533qeF6l1mD3z1Cr5EZDZQnsd8KfSW5Fxc8s5w2fkLzloWqHBHwmDgg==","signatures":[{"sig":"MEQCIHjPXGqn0mIgdSKazwIefteR4g0OKAQ0HrUJwEwTX55UAiAWLgN/U0dAZp383tms8DoRegNOqpK+vlEq46OCvHOgvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/watch.js","name":"nodewatch","author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com"},"readme":"# node-watch\n\nSimple utility for nodejs to watch file changes\na file change is a file whom's mtime is changed\n\nThis utility is handy for e.g. automatic testing in combination with a testing frame-work,\nAn example lives within the JakeFile (jake and docco required)\n\n    run: jake autotest\n\nand make changes in the src/watch/watch.js file or the spec/watchSpec.js file and see te specs running automaticly\n\n## Install:\n\n\n\n     npm install nodewatch\n     \n(Use the \"-g\" global switch for installing nodewatch global)\n\n## Usage:\n\n\n     var watch = require('nodewatch');\n     // Adding 2 dirs relative from process.cwd()\n     // Nested dirs are not watched\n     // dirs can also be added absolute\n     watch.add(\"./spec\").add(\"./lib/watch\").onChange(function(file,prev,curr,action){\n        console.log(file);\n        console.log(prev.mtime.getTime());\n        console.log(curr.mtime.getTime());\n        console.log(action) // new, changed, deleted\n\n     });\n     \n     // Clear (remove) the listeners\n     watch.clearListeners();\n     \n     // Remove dirs to watch\n     watch.remove(\"./spec\").remdDir(\"./lib/watch\");\n \n\n## Methods:\n\n\n     // Add a dir or file relative from process.cwd()\n     watch.add(\"./spec\");\n     // or\n     watch.add(\"../spec\");\n     // or\n     watch.add(\"../path/to/my/file.js\")\n     // Add a dir absolute\n     watch.add(\"/absolute/path\");\n     \n     // Set a listener\n     // It will provide a file (filename as string), prev and curr stats objects\n     watch.onChange(function(file,prev,curr,action){\n            console.log(file);\n            console.log(prev.mtime.getTime());\n            console.log(curr.mtime.getTime());\n            console.log(action); // new, change, delete\n      });\n     \n     // Remove a dir or file (absolute or relative)\n     watch.remove(\"./spec\");\n     \n     // Clear the listener(s) attached via onChange();\n     watch.clearListeners();\n\n\n\n","engines":{"node":">=0.4.0"},"_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"homepage":"http://venalis.github.com/node-watch/","keywords":["watch","tdd","change","filechange"],"licenses":[{"url":"http://www.gnu.org/licenses","type":"GNU General Public License"}],"deprecated":"Obsolete","repository":{"url":"git://github.com/venalis/node-watch.git","type":"git"},"_npmVersion":"1.1.59","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","directories":{"lib":"./lib","docs":"./docs"},"maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"devDependencies":{"jake":"0.2.15","docco":"0.3.0","nodewatch":"0.1.0","uglify-js":"1.2.5","jasmine-node":"1.0.20"},"_id":"nodewatch@0.3.2","version":"0.3.2"}