{"_id":"find-in-files","_rev":"14-d911a95a6c83ccff89cf549f742451d9","name":"find-in-files","description":"A simple tool to search text patterns across multiple files","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"find-in-files","version":"0.1.0","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^1.9.1","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"_id":"find-in-files@0.1.0","_shasum":"12f10ee47f78a1bb487a51b1768065edcd667fcb","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"dist":{"shasum":"12f10ee47f78a1bb487a51b1768065edcd667fcb","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.1.0.tgz","integrity":"sha512-59thSb+BGJtGQrUF1lemJ1LbmU3fX/Ztk1TAEdkDx93H4P3uzOD0mEGrQVvYLZqkfXhIcsTIGsE1Q42k+DdPLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7kETe8QU05nsPqj7b2IBMNmu7InbRY+afzuT4Mzcq/gIgALjErMkY2H7W7DJr9xrAFC9BQftbBV8RGK255oHMk84="}]},"directories":{}},"0.1.1":{"name":"find-in-files","version":"0.1.1","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^1.9.1","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"ce4649ae9a419c74e9b563f045855d38cecda101","_id":"find-in-files@0.1.1","_shasum":"6dfe5fe0ee86b29eb80cdd7a19943feb091e96be","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"dist":{"shasum":"6dfe5fe0ee86b29eb80cdd7a19943feb091e96be","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.1.1.tgz","integrity":"sha512-DeSgKxHhFNgIkZYqIGzhTk3WOYfwVyQxjEXuA6tAEtf58UR7CKhWEeIuFG36HeCqPaHn/XC1q0UqMJo+PwqMJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnOL4ukUIp+Eg7qC2qKl/Qhulr0VVQTgKelyP1f08h/AiBG9LV/nKXf4cDuYD5yXmuWjw2Q+Rph5y+KWOvBGqcY5g=="}]},"directories":{}},"0.1.2":{"name":"find-in-files","version":"0.1.2","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^1.9.1","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"ac1a87491c9bd2f06ad222eb3aeeb41cb65dc644","_id":"find-in-files@0.1.2","_shasum":"08e62a4a7c9d4cd8a2ec5a1b3479c34e5ab4816f","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"dist":{"shasum":"08e62a4a7c9d4cd8a2ec5a1b3479c34e5ab4816f","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.1.2.tgz","integrity":"sha512-XDdDh8R5S9uSvSXyG4S2/FUp4xLgjxwxQxRbnOltmNSa7f7XgfHQOIdKBRv1NQjdZL31mdVR0MtnUKpc4L3kTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl/8qdSly0NeO7/eJZ9BZCGDYMsBwNMo3S5Sbqz818NwIgc7XRfMC+PHOeqA/qLbs00NivRXBt0+o86o8SoTkvkvU="}]},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"directories":{}},"0.2.1":{"name":"find-in-files","version":"0.2.1","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^1.9.1","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"1c292574a318cf563a225fb6ceff6b94d58cf90e","_id":"find-in-files@0.2.1","_shasum":"8189f7d77476e7669a8e4f8fa628ae1786600d29","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.2.0","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"dist":{"shasum":"8189f7d77476e7669a8e4f8fa628ae1786600d29","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.2.1.tgz","integrity":"sha512-A8RieoLfE7U+b7VmebUXxbEQKLDQKwDXr2JRZMTg9Lj7GAEvRMa3Hmq1GhLgmshobHBIorxfL4JfLXnQBulJug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6pqChyxqYD4nILoIBMJ9dtoAnGu/Jm2CflgfwJVvxCAIhAOv/8KwqBerzUA0sC5upY2EUUqr5mEB6VhJG8IAweK0T"}]},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-in-files-0.2.1.tgz_1458827204394_0.06131371506489813"},"directories":{}},"0.3.1":{"name":"find-in-files","version":"0.3.1","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^1.9.1","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"49efda779515c12be278d24cc6d53b9870162849","_id":"find-in-files@0.3.1","_shasum":"2a8a24045d89d60d3b6d4c737a2682f892dc94e8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.2.0","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"dist":{"shasum":"2a8a24045d89d60d3b6d4c737a2682f892dc94e8","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.3.1.tgz","integrity":"sha512-ZXpm/np603NsM6nOjVHCtJqLEkGR53b7H5ECdgrA+zQVc9tMGi06ZYlMaQ6Kuzw2BZw9myGVve/hXzssT+bNgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzvAevhLovnAT2gaACs8F7hyq5I31NZXXCZdqJndb8uAIhAKi/wOfgyg3EhEjfeywpE/Q0MQSO2XDMci68t01HeliW"}]},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/find-in-files-0.3.1.tgz_1460366060612_0.20594502659514546"},"directories":{}},"0.4.0":{"name":"find-in-files","version":"0.4.0","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^2.1.2","chai-as-promised":"^6.0.0","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"97fc25869623e1827bf2550d7fcbaca43bf2768f","_id":"find-in-files@0.4.0","_shasum":"9cd4b67a3459c54381f56ce2f1d69316ad7bb011","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"dist":{"shasum":"9cd4b67a3459c54381f56ce2f1d69316ad7bb011","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.4.0.tgz","integrity":"sha512-qRoIjWzuU7C+tzJ9Gzc5QiLMxw7Q/7iPw9AqVCBMBM0P8Vvl7TdK5hjidpOME1Yu9vggHimodGlBaxlEfxe8og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzYiq3loRAkIoiogl1dDaNZWSxxlIADPqja528Ci96FwIgOPsnSJYPLUwJKlsoz6xfSWyfXTiLSOP4d5M9ZW4C3fE="}]},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-in-files-0.4.0.tgz_1490012071425_0.06842388771474361"},"directories":{}},"0.5.0":{"name":"find-in-files","version":"0.5.0","description":"A simple tool to search text patterns across multiple files","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"keywords":["search","find","files"],"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"license":"MIT","bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"homepage":"https://github.com/kaesetoast/find-in-files","devDependencies":{"chai":"^2.1.2","chai-as-promised":"^6.0.0","coveralls":"^2.10.1","istanbul":"^0.2.11","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1"},"dependencies":{"find":"^0.1.5","q":"^1.0.1"},"gitHead":"6dd632850c6d466a39a5bb0bf4140b46328885d3","_id":"find-in-files@0.5.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"kaesetoast","email":"philipp@nowinski.de"},"dist":{"integrity":"sha512-VraTc6HdtdSHmAp0yJpAy20yPttGKzyBWc7b7FPnnsX9TOgmKx0g9xajizpF/iuu4IvNK4TP0SpyBT9zAlwG+g==","shasum":"8e5a20ffb562e0a47cb916b7f7b821717025e691","tarball":"https://registry.npmjs.org/find-in-files/-/find-in-files-0.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUWoSnnl2jOHIeowPZqReSKF2ES0RcYn68Pxw1XCRYFwIhALcitVLMf6iP7b9MikKvUrQVZU8UbeDU6N/+52sUf2RH"}]},"maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-in-files-0.5.0.tgz_1517918507171_0.4328813776373863"},"directories":{}}},"readme":"find-in-files [![Build Status](https://travis-ci.org/kaesetoast/find-in-files.svg?branch=master)](https://travis-ci.org/kaesetoast/find-in-files) [![Coverage Status](https://img.shields.io/coveralls/kaesetoast/find-in-files.svg)](https://coveralls.io/r/kaesetoast/find-in-files)\n=============\n\nA simple tool to search text patterns across multiple files\n\n## Installation\nfind-in-files is a node module available via npm. You can install it with\n```\n$ npm install --save find-in-files\n```\n\n## Usage\nThe module exposes two simple functions which expect three parameters each.\n\n```JavaScript\n// Async\nfind(pattern, directory, fileFilter)\n// Sync\nfindSync(pattern, directory, fileFilter)\n```\n\n#### pattern [string|object]\nThe string you want to search for or object to control regex flags\n\n#### directory [string]\nThe directory you want to search in.\n\n#### fileFilter [regex] \\(optional)\nA regex you can pass in to only search in files matching the filter.\n\n```JavaScript\nvar findInFiles = require('find-in-files');\n```\n\nBoth functions return a promise which will receive the results object. The results object contains the matches, count of matches per file and the lines that match.\n\n```JavaScript\n{\n    'fileOne.txt': {\n        matches: ['found string'],\n        count: 1,\n        lines: ['This line contains a found string.']\n    }\n}\n```\n\n## Example\n\n```JavaScript\nfindInFiles.find(\"I'm Brian, and so's my wife!\", '.', '.txt$')\n    .then(function(results) {\n        for (var result in results) {\n            var res = results[result];\n            console.log(\n                'found \"' + res.matches[0] + '\" ' + res.count\n                + ' times in \"' + result + '\"'\n            );\n        }\n    });\n```\n\n```JavaScript\n// Use object to set flags on regular expression. This one will ignore case.\nfindInFiles.find({'term': \"I'm Brian, and so's my wife!\", 'flags': 'ig'}, '.', '.txt$')\n    .then(function(results) {\n        for (var result in results) {\n            var res = results[result];\n            console.log(\n                'found \"' + res.matches[0] + '\" ' + res.count\n                + ' times in \"' + result + '\"'\n            );\n        }\n    });\n```\n\n## License\n\nMIT © [Philipp Nowinski](http://philippnowinski.de)\n","maintainers":[{"name":"kaesetoast","email":"philipp@nowinski.de"}],"time":{"modified":"2022-06-18T00:54:38.149Z","created":"2014-06-26T07:55:38.609Z","0.1.0":"2014-06-26T07:55:38.609Z","0.1.1":"2014-12-02T10:34:36.282Z","0.1.2":"2015-09-19T10:47:13.681Z","0.2.1":"2016-03-24T13:46:46.762Z","0.3.1":"2016-04-11T09:14:21.765Z","0.4.0":"2017-03-20T12:14:33.406Z","0.5.0":"2018-02-06T12:01:48.143Z"},"homepage":"https://github.com/kaesetoast/find-in-files","keywords":["search","find","files"],"repository":{"type":"git","url":"git://github.com/kaesetoast/find-in-files.git"},"author":{"name":"Philipp Nowinski","email":"philipp@nowinski.de"},"bugs":{"url":"https://github.com/kaesetoast/find-in-files/issues"},"license":"MIT","readmeFilename":"README.md","users":{"mrbgit":true,"maxime1992":true}}