{"_id":"nodewatch","_rev":"35-099e22e791892a11b8aa331c85f4975d","name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.3":{"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.0.3","homepage":"http://jorritd.github.com/node-watch/","author":{"name":"Jorrit Duin","email":"sjorrit.duin@gmail.com","url":"https://github.com/jorritd"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"./lib/watch/watch","directories":{"lib":"./lib/watch"},"engines":{"node":">=0.4.0"},"licenses":[{"type":"AS IS"}],"_id":"nodewatch@0.0.3","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.8","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"8cf6b76e6e8430ce9b6ae84a902379194db9f4cb","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.0.3.tgz","integrity":"sha512-9K5+Nus7SzoKvbQLrVAdgCx20Pth7diCIo+5N6Fl4Xwl6TABzLZMkm19dZd5sPjEj+V1nNhA9KvT5MJIOTNOfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtaFqafCwzZB3LMZdtTQGbAYY7JvZTu0d7NArh7+rPewIhAPnULpxvDyK2+3RByuMBgQMwcHmym/p3Kie1cF2a/UYT"}]},"scripts":{},"deprecated":"Obsolete"},"0.0.4":{"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.0.4","homepage":"http://jorritd.github.com/node-watch/","author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com","url":"https://github.com/jorritd"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"./lib/watch/watch","directories":{"lib":"./lib/watch"},"dependencies":{},"devDependencies":{"jake":"","docco":"","jasmine-node":"","uglify-js":"","nodewatch":""},"bundleDependencies":[],"engines":{"node":">=0.4.0"},"licenses":[{"type":"AS IS"}],"_id":"nodewatch@0.0.4","_engineSupported":true,"_npmVersion":"1.0.8","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"16877787b58b203c53a03ed4a1702d572011ec04","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.0.4.tgz","integrity":"sha512-X0OLNHSX409w7MTwNw0/tg5hDUGDPS/y1xSywiTljsEXyKkzViqp8/VH5+pGjOspS0uRL7ss5bV4UPsw5WSWjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+nv2UfUYem9AW0WhRl4MsNC215Rb2G3RRE5Pi9ihErwIgTpxWNbGG/oVnD67+Opu3ZEuzCJ4soX1agObgRu1wlQg="}]},"scripts":{},"deprecated":"Obsolete"},"0.0.5":{"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.0.5","homepage":"http://jorritd.github.com/node-watch/","author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com","url":"https://github.com/jorritd"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"./lib/watch/watch","directories":{"lib":"./lib/watch"},"dependencies":{},"devDependencies":{"jake":"","docco":"","jasmine-node":"","uglify-js":"","nodewatch":""},"bundleDependencies":[],"engines":{"node":">=0.4.0"},"licenses":[{"type":"AS IS"}],"_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"_id":"nodewatch@0.0.5","_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"fbf68aff7ef7e0bc16a96e817ffe89d09a1c4d1d","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.0.5.tgz","integrity":"sha512-SqMsT8ljzBCfSF48NtA/4AeXbIOvGh4R/9xIRmDWKUSHAkh5WGVvOqbnIw4MvK7TdVl15E5kB5khilr/f+SwXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKkStRnSIRJjz4/dWEOO91bv7z0H4/tOR6brJG7LmRGwIgWvc5ePhBJYXqcU+AjROxaK+nHbDU1s85okOnhuiXfuc="}]},"maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"deprecated":"Obsolete"},"0.1.0":{"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.1.0","homepage":"http://jorritd.github.com/node-watch/","author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com","url":"https://github.com/jorritd"},"keywords":["change","file","tdd"],"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"./lib/watch","directories":{"lib":"./lib"},"devDependencies":{"VNLS":"0.0.1","docco":"0.3.0","jasmine-node":"1.0.20","nodewatch":"0.0.3","uglify-js":"1.2.5"},"engines":{"node":">=0.4.0"},"licenses":[{"type":"AS IS"}],"_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"_id":"nodewatch@0.1.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"638528cd7674a376b2c3817415e3a9854b63eeeb","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.1.0.tgz","integrity":"sha512-QpVsu7/Kxg7h1SPqmB7s8nptmbynmYSeObwV+/UJCwzIxIBGYizQp4CjTLfW4CkaXgzXpIPCfeElqTNUDMHsYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG7X/u1AXUje4Rxu02zdETAXi+BfEje58vwoSO3bn2M4AiA5M1pg4aJ9sg/Z+smBB3L+Va4NtonfB3aukW5oLNGeZA=="}]},"readme":"# node-watch\n\nSimple utility for nodejs to watch file changes.\n\nA file change is:\n\n* a **file** whom's mtime is changed\n* a **file** which is added to a 'watched' folder\n* a **file** which is deleted form a 'watched' folder\n\nA new feature is to watch folders recurively.\nHowever, polling for changes on the file system is slow.\nAnd I did not test this module on a large number of files and\nnested folders.\n\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\nMake changes in the src/watch.js file or the specs/watchSpec.js file and see te specs running automaticly\n\n## Install:\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(action);\n        console.log(file);\n        console.log(prev.mtime.getTime());\n        console.log(curr.mtime.getTime());\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(\"./specs\");\n     // or\n     watch.add(\"../specs\");\n     // or\n     watch.add(\"../specs\",true);\n     // With the last argument = true, the specs folder\n     // is recursive watched.\n\n     // Just watch ONE file\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            // action is 'delete' || 'change' || 'new'\n            console.log(action);\n            console.log(file);\n            console.log(prev.mtime.getTime());\n            console.log(curr.mtime.getTime());\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","maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"deprecated":"Obsolete"},"0.3.0":{"author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com"},"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.3.0","homepage":"http://jorritd.github.com/node-watch/","keywords":["watch","tdd","change","filechange"],"directories":{"lib":"./lib","docs":"./docs"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"lib/watch.js","engines":{"node":">=0.4.0"},"bugs":{"url":"https://github.com/jorritd/node-watch/issues"},"devDependencies":{"jake":"0.2.15","docco":"0.3.0","jasmine-node":"1.0.20","nodewatch":"0.1.0","uglify-js":"1.2.5"},"licenses":[{"type":"GNU General Public License","url":"http://www.gnu.org/licenses"}],"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){\n        console.log(file);\n        console.log(prev.mtime.getTime());\n        console.log(curr.mtime.getTime());\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){\n            console.log(file);\n            console.log(prev.mtime.getTime());\n            console.log(curr.mtime.getTime());\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","_id":"nodewatch@0.3.0","dist":{"shasum":"c99ce87a77f58513fcda1bd5b65f1efd64591734","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.3.0.tgz","integrity":"sha512-ePs72PvRj7xYgBgAZWldVvK8VZwTEZJZZoeBNe114PHk2r3pF/BLXwLw6BcHXi14GKxE0gb2P05Fs9RKbXQ9jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXS1Wn02WgxarKkJ8sxOpKDKQlvZSfGu5GHG09wn0gxAiEA52COdliCulUSbBGD9Lo++3FVDG2v3qVgQBPbU3zxarc="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"deprecated":"Obsolete"},"0.3.2":{"author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com"},"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.3.2","homepage":"http://venalis.github.com/node-watch/","keywords":["watch","tdd","change","filechange"],"directories":{"lib":"./lib","docs":"./docs"},"repository":{"type":"git","url":"git://github.com/venalis/node-watch.git"},"main":"lib/watch.js","engines":{"node":">=0.4.0"},"bugs":{"url":"https://github.com/venalis/node-watch/issues"},"devDependencies":{"jake":"0.2.15","docco":"0.3.0","jasmine-node":"1.0.20","nodewatch":"0.1.0","uglify-js":"1.2.5"},"licenses":[{"type":"GNU General Public License","url":"http://www.gnu.org/licenses"}],"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","_id":"nodewatch@0.3.2","dist":{"shasum":"35ad684eac73fc0895e483e5fb6dd26d578700d9","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.3.2.tgz","integrity":"sha512-99ce9ao3KrUHRkRSSqmWk8xf7ulZTy5533qeF6l1mD3z1Cr5EZDZQnsd8KfSW5Fxc8s5w2fkLzloWqHBHwmDgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjPXGqn0mIgdSKazwIefteR4g0OKAQ0HrUJwEwTX55UAiAWLgN/U0dAZp383tms8DoRegNOqpK+vlEq46OCvHOgvg=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"deprecated":"Obsolete"},"0.3.1":{"author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com"},"name":"nodewatch","description":"Simple utility to watch file changes. A file change is a file whom's mtime is changed","version":"0.3.1","homepage":"http://jorritd.github.com/node-watch/","keywords":["watch","tdd","change","filechange"],"directories":{"lib":"./lib","docs":"./docs"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"},"main":"lib/watch.js","engines":{"node":">=0.4.0"},"bugs":{"url":"https://github.com/jorritd/node-watch/issues"},"devDependencies":{"jake":"0.2.15","docco":"0.3.0","jasmine-node":"1.0.20","nodewatch":"0.1.0","uglify-js":"1.2.5"},"licenses":[{"type":"GNU General Public License","url":"http://www.gnu.org/licenses"}],"readme":"# node-watch\n\nSimple utility for nodejs to watch file changes.\n\nA file change is:\n\n* a **file** whom's mtime is changed\n* a **file** which is added to a 'watched' folder\n* a **file** which is deleted form a 'watched' folder\n\nA new feature is to watch folders recurively.\nHowever, polling for changes on the file system is slow.\nAnd I did not test this module on a large number of files and\nnested folders.\n\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\nMake changes in the src/watch.js file or the specs/watchSpec.js file and see te specs running automaticly\n\n## Install:\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, change, delete\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(\"./specs\");\n     // or\n     watch.add(\"../specs\");\n     // or\n     watch.add(\"../specs\",true);\n     // With the last argument = true, the specs folder\n     // is recursive watched.\n\n     // Just watch ONE file\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","_id":"nodewatch@0.3.1","dist":{"shasum":"d6e4adbaa4825545612c6aecb98adff2c7d0811e","tarball":"https://registry.npmjs.org/nodewatch/-/nodewatch-0.3.1.tgz","integrity":"sha512-CUUSAVWoM0p40LmsC4xQfrTJ92hOc+P9FEfURYad/IFkvjlB2yznzA3a/kEZR3t/wF21TYDIcJWZ8RN/bFsxAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK7Ncm2j7uHhXFm894j+ebT+ftF4hLVsekz7e7XqXZEAIgcrWF7pDPXGEI9GOz4szgMgUgmijf6tVDefrN5MZwS64="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"jorrit","email":"jorrit.duin@gmail.com"},"maintainers":[{"name":"jorrit","email":"jorrit.duin@gmail.com"}],"deprecated":"Obsolete"}},"maintainers":[{"email":"jorrit.duin+npm@gmail.com","name":"j-o-r"}],"time":{"modified":"2023-11-10T15:57:41.799Z","created":"2011-06-02T12:39:32.262Z","0.0.3":"2011-06-02T12:39:32.932Z","0.0.4":"2011-06-03T05:28:23.434Z","0.0.5":"2012-02-04T12:00:12.614Z","0.1.0":"2012-02-07T15:52:32.992Z","0.3.0":"2012-09-05T16:03:37.834Z","0.3.1":"2012-09-06T14:47:54.700Z","0.3.2":"2012-09-06T14:10:27.912Z"},"author":{"name":"Jorrit Duin","email":"jorrit.duin@gmail.com"},"repository":{"type":"git","url":"git://github.com/jorritd/node-watch.git"}}