{"name":"monocle","version":"0.1.1","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":{"mocha":"1.8.1"},"scripts":{"test":"mocha test"},"repository":"","keywords":["watch","filesystem","folders","fs"],"author":{"name":"Sam Saccone"},"license":"BSD","readme":"[![Build Status](https://travis-ci.org/samccone/monocle.png?branch=master)](https://travis-ci.org/samccone/monocle)\n\n## 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.1","dist":{"shasum":"8c6cb02dfc78f30451a9366ab14f4dee282b28d1","tarball":"http://registry-npm.ywwl.com/monocle/download/monocle-0.1.1.tgz","integrity":"sha512-96lcjH13tfm4mEVvmQUyQ90WSK6Z70RV9JCibdgbhwoYwVZx8986C+EljMZDNLNZ6IasQwRd/CbnPFhFiHxkDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwvOdCP9xaTFsdUbO9pS3ECn6Zi28onHq/tOvzrb5YXwIgQEhVTUhXrPJhUtdmS/T0s2Rc+RXth/nKBi1Var6y3wI="}],"size":2631,"noattachment":false,"key":"/monocle/-/monocle-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"samccone","email":"samccone@gmail.com"},"maintainers":[{"name":"samccone","email":"samccone@gmail.com"}],"publish_time":1361232395667,"_cnpm_publish_time":1361232395667,"dist-tags":{"latest":"1.1.51"}}