{"name":"monocle","version":"0.1.0","description":"a tool for watching directories for file changes","main":"monocle.js","directories":{"test":"test"},"dependencies":{"readdirp":"~0.2.3","underscore":"~1.4.4"},"devDependencies":{},"scripts":{"test":"mocha test"},"repository":"","keywords":["watch","filesystem","folders","fs"],"author":{"name":"Sam Saccone"},"license":"BSD","readme":"**Monocle -- a tool for watching things**\n\n`npm install monocle`\n\n`var Monocle = require('monocle')\n (new Monocle).watchDirectory(dir, cb, watchSetupComplete, fileFilers, directoryFilters);\n`\n\n\n## Filters\n\nThere are three different ways to specify filters for files and directories respectively.\n\n- **function**: a function that takes an entry info as a parameter and returns true to include or false to exclude the entry\n\n- **glob string**: a string (e.g., `*.js`) which is matched using [minimatch](https://github.com/isaacs/minimatch), so go there for more\n    information.\n\n    Globstars (`**`) are not supported since specifiying a recursive pattern for an already recursive function doesn't make sense.\n\n    Negated globs (as explained in the minimatch documentation) are allowed, e.g., `!*.txt` matches everything but text files.\n\n- **array of glob strings**: either need to be all inclusive or all exclusive (negated) patterns otherwise an error is thrown.\n\n    `[ '*.json', '*.js' ]` includes all JavaScript and Json files.\n\n\n    `[ '!.git', '!node_modules' ]` includes all directories except the '.git' and 'node_modules'.\n\nDirectories that do not pass a filter will not be recursed into.","readmeFilename":"README.md","_id":"monocle@0.1.0","dist":{"shasum":"b9bfb9a4edd1953d196627f5957a0a2c03e1519f","tarball":"http://registry-npm.ywwl.com/monocle/download/monocle-0.1.0.tgz","integrity":"sha512-DpF5nDU2QDRjg32LSq3m4htA7QNMsX8BBbP6ZgUo2rSre/+sLKg4et8VTmDa0kH+uVb+xeuGFpUwDCreoPEmfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF6t+AOoJFwkm3jqm4J/ug9fyYXP3aW1X+hNbqJ5xZJvAiBiEbN1YyIQQwkop24ZiNaEEA/trIfQBlCqo2xCP3DliQ=="}],"size":2407,"noattachment":false,"key":"/monocle/-/monocle-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"samccone","email":"samccone@gmail.com"},"maintainers":[{"name":"samccone","email":"samccone@gmail.com"}],"publish_time":1361228515089,"_cnpm_publish_time":1361228515089,"dist-tags":{"latest":"1.1.51"}}