{"author":{"name":"Michael Alexander","email":"mail@michaelalexander.com.au","url":"http://michaelalexander.com.au"},"name":"hound","description":"Cross platform directory tree watcher that works, even on Windows.","version":"1.0.0","homepage":"https://github.com/beefsack/node-hound","repository":{"url":"https://github.com/beefsack/node-hound.git"},"main":"hound","scripts":{"test":"node_modules/.bin/jasmine-node spec"},"dependencies":{},"devDependencies":{"jasmine-node":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"beefsack","email":"beefsack@gmail.com"},"_id":"hound@1.0.0","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"9666524f521112c946c6be3b5c40031a55907add","tarball":"http://registry-npm.ywwl.com/hound/download/hound-1.0.0.tgz","integrity":"sha512-T4q5XB1rP6ItOE0qpxCDoJ7znytDoPZK/Gk2f2hCdbo0t19HwHW10IEKWmlslQvUjD5s0q1UsviZi36Fy8bREg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD9M6YvnUEAEe9O7RUCWR8LKBYhOE2c7N/flAMhLmeawIgZDn1sYm00cnxpyIggwv0SddTk7fzTw5HMPbi6WuMQL4="}],"size":3525,"noattachment":false,"key":"/hound/-/hound-1.0.0.tgz"},"maintainers":[{"name":"beefsack","email":"beefsack@gmail.com"}],"directories":{},"readme":"hound - directory tree watcher for node.js\n=============================================\n\nCross platform directory tree watcher that works, even on Windows\n-----------------------------------------------------------------\n\nThe philosophy of hound is:\n\n* **Be reliable, work on every platform**\n* **Be fast**\n* **Be simple**\n\nhound is designed to be very reliable, fast, and simple.  There are no runtime\ndependencies outside of the standard node.js libraries.  There is a development\ndependency on [Jasmine](http://pivotal.github.com/jasmine/), which is required\nto run the tests.\n\nInstallation\n------------\n\nInstall using npm:\n\n```\nnpm install hound\n```\n\nBecause hound has no runtime dependencies, it is also possible to download the\nlibrary manually and require it directly.\n\nUsage\n-----\n\n```javascript\nhound = require('hound')\n\n// Create a directory tree watcher.\nwatcher = hound.watch('/tmp')\n\n// Create a file watcher.\nwatcher = hound.watch('/tmp/file.txt')\n\n// Add callbacks for file and directory events.  The change event only applies\n// to files.\nwatcher.on('create', function(file, stats) {\n  console.log(file + ' was created')\n})\nwatcher.on('change', function(file, stats) {\n  console.log(file + ' was changed')\n})\nwatcher.on('delete', function(file) {\n  console.log(file + ' was deleted')\n})\n\n// Unwatch specific files or directories.\nwatcher.unwatch('/tmp/another_file')\n\n// Unwatch all watched files and directories.\nwatcher.clear()\n```\n\nTesting\n-------\n\nTo run the tests, use `npm test`.  The tests work on actual directory trees that\nare generated in the tmp directory.\n","publish_time":1337530244182,"_cnpm_publish_time":1337530244182,"dist-tags":{"latest":"1.0.5"}}