{"_id":"fs-watch-tree","_rev":"28-69c8c48500c4aeb1d02b68f13cb25abd","name":"fs-watch-tree","description":"Recursively watch directories for changes","dist-tags":{"latest":"0.2.5"},"versions":{"0.1.0":{"name":"fs-watch-tree","version":"0.1.0","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},"contributors":[{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"git://github.com/busterjs/fs-watch-tree.git"},"devDependencies":{"rimraf":"*"},"_npmUser":{"name":"cjohansen","email":"christian@cjohansen.no"},"_id":"fs-watch-tree@0.1.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"0df82b5b0e638aad36b9433fea04411b4b14a3d1","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.1.0.tgz","integrity":"sha512-zpU1/W7OMj8hHDyxuUwGPlDzsCpo5JJUSJTtGr7GTFZkxqF+zdQj9L19AwG8UUTAk/vdkU0iKNgcKEBrJmMhAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiv57/3iSBrRpQ8Bo9yh7H6XU5A5oTGdm05+02OZbT0AiEAhWDfOVo71MtVCj7tK/lQIyYQjrP59RUJFmSA7cerTuk="}]},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.0":{"name":"fs-watch-tree","version":"0.2.0","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},"contributors":[{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"git://github.com/busterjs/fs-watch-tree.git"},"dependencies":{"when":"https://github.com/cujojs/when/tarball/1.0.2"},"devDependencies":{"rimraf":"*"},"_npmUser":{"name":"cjohansen","email":"christian@cjohansen.no"},"_id":"fs-watch-tree@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"ce1593c2e72f0824828bbed1303618f944074d5c","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.0.tgz","integrity":"sha512-zXvzBdji/Lv7yw3P2gwlIRPlR9QYE+TmIVh4MayXVC1/e/0wtkcM9xXlb68qa2WTthpQwsTvOYELYCM2RtR4ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMZAtiU1HyZNQAy2AnnRrxlolIzauHC/VkLgOHe9xeOAiEA6f1lbVxXeVcXT04b6s/AGXYlfPNb0/aENZScmqBk1Uo="}]},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.1":{"name":"fs-watch-tree","version":"0.2.1","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},"contributors":[{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"git://github.com/busterjs/fs-watch-tree.git"},"scripts":{"test":"./node_modules/buster/bin/buster-test"},"dependencies":{"when":"~1.3"},"devDependencies":{"buster":"*","rimraf":"*"},"_npmUser":{"name":"cjohansen","email":"christian@cjohansen.no"},"_id":"fs-watch-tree@0.2.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"6cb86d59dcb5edd144fdc44f60a9dace7979dd2a","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.1.tgz","integrity":"sha512-AG0ZEP7MGCROEx16alxeUydPRnj4+RubD1Y4M9B8UeGRU4bUmvSx8H1GnCDQbJmuELBS8L2U9qJe7IyB/pEEhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbM+GXf18KcAUiqabeLmx03/CObJZXBDKvNvKUsqvaMAiEAugG6Ne8NARSfFIVWUVCVKDMDRMFb8TLQ8aSSc3e071w="}]},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.2":{"name":"fs-watch-tree","version":"0.2.2","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},"contributors":[{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"git://github.com/busterjs/fs-watch-tree.git"},"scripts":{"test":"./node_modules/buster/bin/buster-test"},"dependencies":{"when":"https://github.com/cujojs/when/tarball/1.3.0"},"devDependencies":{"buster":"*","rimraf":"*"},"_npmUser":{"name":"cjohansen","email":"christian@cjohansen.no"},"_id":"fs-watch-tree@0.2.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"ded130c1e9b0dde46ff11e6c4b21a6ba06dd65ad","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.2.tgz","integrity":"sha512-nRp/nOBRSTcKcllj3kdwsAg/O6N387NloBk6hLMTTQ8NeRRlNYgYUvAW29WmQYv/FUDZNl+AMus8H29m3sSFDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfVTxN/jSiO7tcGvtL+ECCKSCjBy3Fywt6eK9zpvNi4gIgaHEGB5+amQmZC8O3Gnbf9kvYAHY2jIT/FOXduxK5FdA="}]},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"},{"name":"augustl","email":"august@augustl.com"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.3":{"name":"fs-watch-tree","version":"0.2.3","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Magnar Sveen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"},{"name":"Stein Magnus Jodal","email":"stein.magnus@jodal.no","url":"http://jodal.no"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"https://github.com/busterjs/fs-watch-tree.git"},"scripts":{"test":"node run-tests.js"},"dependencies":{"when":"https://github.com/cujojs/when/tarball/1.3.0","minimatch":"~0.2"},"devDependencies":{"buster-node":"0.1","rimraf":"*"},"bugs":{"url":"https://github.com/busterjs/fs-watch-tree/issues"},"_id":"fs-watch-tree@0.2.3","dist":{"shasum":"1f1863cfd5d1cf4b8d963d5f4c9f437df2e03ec0","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.3.tgz","integrity":"sha512-spgJ8nfFYnWtPuQCsT9182edgkIIHAgQOS/AHXf7MZbAcEgPwjuhrt6GPCkg4O/DLuN7vBOoXh3mgk3q5iWesQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdtrA6lK0X4gfdeQTMM0gd8+3rA4zMkPC9MvNmIq8wcAiEA6S3IzgpBTlOCLRhns70RYkr/9Q03/yY9b46j5ok2+n0="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dwittner","email":"d.wittner@gmx.de"},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"},{"name":"augustl","email":"august@augustl.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.4":{"name":"fs-watch-tree","version":"0.2.4","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Magnar Sveen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"},{"name":"Stein Magnus Jodal","email":"stein.magnus@jodal.no","url":"http://jodal.no"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"https://github.com/busterjs/fs-watch-tree.git"},"scripts":{"test":"node run-tests.js"},"dependencies":{"when":"https://github.com/cujojs/when/tarball/1.3.0","minimatch":"~0.2"},"devDependencies":{"buster-node":"0.1","rimraf":"*"},"bugs":{"url":"https://github.com/busterjs/fs-watch-tree/issues"},"_id":"fs-watch-tree@0.2.4","dist":{"shasum":"522d693a61919c345dd2c4e2282da9552e4307c4","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.4.tgz","integrity":"sha512-JqANLLOQZm+tOhMzWiI7r+Sc9o4u2j1J30k7BkneHCPgPjsHvUpyuZ17s3RkJmX6we1aL+tChvQRbmlAsDfTNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5qbZ9FzimOXBZAN5w0Y4mKQRwJgXV20qaEXP9eAfxkwIgQHW2dE4/bIK5g9mYgFK9DatKLIN0ON3H7ZuOM1VexhQ="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dwittner","email":"d.wittner@gmx.de"},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"},{"name":"augustl","email":"august@augustl.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"deprecated":"This package is outdated and not actively maintained."},"0.2.5":{"name":"fs-watch-tree","version":"0.2.5","description":"Recursively watch directories for changes","homepage":"http://busterjs.org/doc/fs-watch-tree","author":{"name":"Magnar Sveen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"},{"name":"Stein Magnus Jodal","email":"stein.magnus@jodal.no","url":"http://jodal.no"}],"main":"./lib/fs-watch-tree","repository":{"type":"git","url":"https://github.com/busterjs/fs-watch-tree.git"},"scripts":{"test":"node run-tests.js"},"dependencies":{"when":"https://github.com/cujojs/when/tarball/1.3.0","minimatch":"~0.2"},"devDependencies":{"buster-node":"0.1","rimraf":"*"},"bugs":{"url":"https://github.com/busterjs/fs-watch-tree/issues"},"_id":"fs-watch-tree@0.2.5","dist":{"shasum":"b48a014c9830ff53e52356ea23056c1c0d6cb92d","tarball":"https://registry.npmjs.org/fs-watch-tree/-/fs-watch-tree-0.2.5.tgz","integrity":"sha512-oxm8W4f0K6x8wl6O78k37U7TuFlr9rPCn8FtNYjFJ6oJtAQrk9oEg21MBgS/8uOfTAu3HhXTSu48D1HQvMSfgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD33w3iR8STdMYLRhVNlBINQJNtcd7Kc7mJ23okj7WsaAIgcrn/VabSr32Ch9uPXkAwOnB27YBIprciQy9/wYL0XMo="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"dwittner","email":"d.wittner@gmx.de"},"maintainers":[{"name":"cjohansen","email":"christian@cjohansen.no"},{"name":"augustl","email":"august@augustl.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"deprecated":"This package is outdated and not actively maintained."}},"readme":"# fs-watch-tree #\r\n\r\n**Please note!** This package is outdated and not actively maintained. I would suggest looking at http://github.com/shama/gaze or https://github.com/paulmillr/chokidar.\r\n\r\n-----------------------------\r\n\r\n**fs-watch-tree** is a small tool to watch directories for changes recursively.\r\nIt uses\r\n[fs-watch](http://nodejs.org/docs/latest/api/fs.html#fs_fs_watch_filename_options_listener)\r\nto watch for changes, thus should work on most platforms.\r\n\r\n## Synopsis ##\r\n\r\n    var watchTree = require(\"fs-watch-tree\").watchTree;\r\n\r\n    var watch = watchTree(\"/home/christian\", function (event) {\r\n        // See description of event below\r\n    });\r\n\r\n    watch.end(); // Release watch\r\n\r\n    watch = watchTree(\"/home/christian\", {\r\n        exclude: [\"node_modules\", \"~\", \"#\", /^\\./]\r\n    }, function (event) {\r\n        // Respond to change\r\n    });\r\n\r\n## `watchTree(dir, callback)` ##\r\n\r\nWatches directory `dir` recursively for changes.\r\n\r\nThe callback is called with an `event` object. The event is described below.\r\n\r\n## `watchTree(dir, options, callback)` ##\r\n\r\nWatch a directory recursively, with some specific options. Currently, you can\r\nonly specify a single option:\r\n\r\n    { exclude: [] }\r\n\r\nThe `exclude` array specifies file patterns to exclude from watches. If a\r\npattern matches a directory, `watch-tree` will not recurse into it. If it\r\nmatches a file, changes to that file will not trigger an event.\r\n\r\nThe excludes can be either strings or regular expressions, but are always\r\ntreated as regular expressions. That means that\r\n\r\n    { exclude: [\".git\", \"node_modules\"] }\r\n\r\nWill be treated the same way as:\r\n\r\n    { exclude: [new RegExp(\".git\"), new RegExp(\"node_modules\")] }\r\n\r\nIf you only want to exclude specific files, be sure to provide full\r\npaths. `watch-tree` does not expand paths, it will resolve all paths relative to\r\nthe original directory. So this:\r\n\r\n    watchFile(\".git\", function (event) { /* ... *) });\r\n\r\nWill watch (and consider excludes for) directories like `.git/branches`. And\r\nthis:\r\n\r\n    watchFile(\"/home/christian/projects/watch-tree/.git\", function (event) {});\r\n\r\nWill watch (and consider excludes for) directories like\r\n`/home/christian/projects/watch-tree/.git`.\r\n\r\n## `event` ##\r\n\r\nThe event object has the following properties:\r\n\r\n### `name` ###\r\n\r\nThe full (relative) path to the file/directory that changed.\r\n\r\n### `isDirectory()` ###\r\n\r\nReturns true if the cause of the change was a directory. In some cases,\r\ne.g. when the directory was deleted, it's not possible to know if the\r\nsource was a directory. In that case, this method returns false.\r\n\r\n### `isMkdir()` ###\r\n\r\nReturns true if the cause of the event was a newly created directory.\r\n\r\n### `isDelete()` ###\r\n\r\nReturns true if the cause of the event was a deleted file/directory.\r\n\r\n### `isModify()` ###\r\n\r\nReturns true if the cause of the event was a modified file/directory.\r\n","maintainers":[{"email":"hello@dominykas.com","name":"dominykas"},{"email":"august@augustl.com","name":"augustl"},{"email":"d.wittner@gmx.de","name":"dwittner"},{"email":"christian@cjohansen.no","name":"cjohansen"}],"time":{"modified":"2022-06-18T03:56:23.887Z","created":"2012-04-17T20:16:05.524Z","0.1.0":"2012-04-17T20:16:07.492Z","0.2.0":"2012-04-28T23:05:13.828Z","0.2.1":"2012-06-20T21:31:59.671Z","0.2.2":"2012-07-09T22:30:21.878Z","0.2.3":"2014-02-27T23:06:02.460Z","0.2.4":"2014-02-28T14:43:49.046Z","0.2.5":"2014-02-28T15:08:46.042Z"},"author":{"name":"Magnar Sveen"},"repository":{"type":"git","url":"https://github.com/busterjs/fs-watch-tree.git"},"users":{"gillesruppert":true},"homepage":"http://busterjs.org/doc/fs-watch-tree","contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"},{"name":"August Lilleaas","email":"august.lilleaas@gmail.com","url":"http://augustl.com"},{"name":"Magnar Sveen","email":"magnars@gmail.com"},{"name":"Stein Magnus Jodal","email":"stein.magnus@jodal.no","url":"http://jodal.no"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/busterjs/fs-watch-tree/issues"}}