{"dist":{"shasum":"8c6cb02dfc78f30451a9366ab14f4dee282b28d1","tarball":"https://registry.npmjs.org/monocle/-/monocle-0.1.1.tgz","integrity":"sha512-96lcjH13tfm4mEVvmQUyQ90WSK6Z70RV9JCibdgbhwoYwVZx8986C+EljMZDNLNZ6IasQwRd/CbnPFhFiHxkDQ==","signatures":[{"sig":"MEUCIQCwvOdCP9xaTFsdUbO9pS3ECn6Zi28onHq/tOvzrb5YXwIgQEhVTUhXrPJhUtdmS/T0s2Rc+RXth/nKBi1Var6y3wI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"monocle.js","name":"monocle","_from":".","author":{"name":"Sam Saccone"},"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.","license":"BSD","scripts":{"test":"mocha test"},"_npmUser":{"name":"samccone","email":"samccone@gmail.com"},"keywords":["watch","filesystem","folders","fs"],"repository":"","_npmVersion":"1.2.11","description":"a tool for watching directories for file changes","directories":{"test":"test"},"maintainers":[{"name":"samccone","email":"samccone@gmail.com"}],"dependencies":{"readdirp":"~0.2.3","underscore":"~1.4.4"},"readmeFilename":"README.md","devDependencies":{"mocha":"1.8.1"},"_id":"monocle@0.1.1","version":"0.1.1"}