{"dist":{"shasum":"e59e410c3b4856ac97ff588a1f54304ac318933c","tarball":"https://registry.npmjs.org/flac/-/flac-0.3.0.tgz","integrity":"sha512-52oFJru3F/aELcnDwHtqDNXxruIZH7bE3vK6xQF4ALCelCZBXFggqPsPXPilVs9L242Iz1ROrbVX0UYXJMMinw==","signatures":[{"sig":"MEYCIQCdnvxxIr0OMeJBfuKXhejVdAha+rl8+tQJHNqxq+xcKAIhAKx5Xqh4hPhUyZIUq7HbzuxqlpKxmvanu0zQTBnxyb0G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index.js","name":"flac","author":{"url":"http://github.com/gregof","name":"Fedor Golubev","email":"gregof@yandex.ru"},"readme":"# FLAC\nFind, Load and make the Cache.\nCaching made by [fsa](https://github.com/gregof/fsa).\n\nIf your filters are changed, you have to `clearCache`, because filters doesn't apply to cached objects.\n\n## Example\nFile structure:\n```\ntest\n  package.json\n  a\n    module.json\n  b\n    module.json\n```\nDefine filters and exec `flac.find` for `test` directory.\n```javascript\nvar flacOptions = {\n    filters: [\n        {\n            name: 'module',\n            test: function (file) {\n                return file === 'module.json'\n            }\n        },\n        {\n            name: 'package', \n            test: function (file) {\n                return file === 'package.json'\n            }\n        }\n    ],\n    noCache: false, // not required, default value 'false'\n    cacheDir: '.custom' // not required, default value '.flac'\n};\nflac.find('test', flacOptions, function (res) {\n    // print result\n})\n```\nResult:\n```json\n[\n    {\n        \"filter\": \"module\",\n        \"file\": \"a/module.json\",\n        \"text\": \"...\"\n    },\n    {\n        \"filter\": \"module\",\n        \"file\": \"b/module.json\",\n        \"text\": \"...\"\n    },\n    {\n        \"filter\": \"package\",\n        \"file\": \"package.json\",\n        \"text\": \"...\"\n    }\n]\n```\n","engines":{"node":">=0.4"},"_npmUser":{"name":"gregof","email":"gregof@yandex.ru"},"repository":{"url":"git://github.com/gregof/flac.git","type":"git"},"_npmVersion":"1.1.59","description":"Find, Load and make the Cache","maintainers":[{"name":"gregof","email":"gregof@yandex.ru"}],"dependencies":{"abc":"0.5.x","fsa":"0.5.x"},"devDependencies":{"tc":"0.5.x"},"optionalDependencies":{},"_id":"flac@0.3.0","version":"0.3.0"}