{"_id":"@anzerr/fs.search","_rev":"1-2e3897c7a423d6dff740ae247458e3a4","name":"@anzerr/fs.search","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.5":{"name":"@anzerr/fs.search","version":"1.0.5","keywords":[],"homepage":"https://github.com/anzerr/fs.search#readme","bugs":{"url":"https://github.com/anzerr/fs.search/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/anzerr/fs.search.git"},"license":"MIT","author":{"name":"anzerr"},"main":"index.js","types":"index.d.ts","scripts":{"test":"echo 'todo'"},"dependencies":{"promise.util":"git+https://git@github.com/anzerr/promise.util.git","fs.promisify":"git+https://git@github.com/anzerr/fs.promisify.git","fs.find":"git+https://git@github.com/anzerr/fs.find.git"},"devDependencies":{},"engines":{"node":">= 0.10.0"},"description":"![GitHub Actions status | linter](https://github.com/anzerr/fs.search/workflows/linter/badge.svg) ![GitHub Actions status | publish](https://github.com/anzerr/fs.search/workflows/publish/badge.svg) ![GitHub Actions status | test](https://github.com/anzerr","gitHead":"39a1eebd5a6908f2e55536fa135c153aebbd2c2c","_id":"@anzerr/fs.search@1.0.5","_nodeVersion":"12.22.9","_npmVersion":"6.14.15","dist":{"integrity":"sha512-b1SHa4vUoFyqx5LliTfGZrC+L4SFaLKzQHpUWE/jwvQ8/jPx6lu1xDp61XrWYPJ2Y8yiTSXk2AHUpO83jI91hg==","shasum":"0e13e0e24a01e863ffc3a32228231af5ed8318d5","tarball":"https://registry.npmjs.org/@anzerr/fs.search/-/fs.search-1.0.5.tgz","fileCount":4,"unpackedSize":5247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6speCRA9TVsSAnZWagAAYCEP/ie7+9crEwHxSsIMPcat\nZ8L4Rv+Rd+lZSkaI0jBNUMjdvp8xgFBqTDsOpIcahN3EMIk/lmHbGG+lJi/j\n0DKAONCZj+/Kht8YKrJIA0tsoRmde8wzRU3qmuPAVjGGk2TdqATexT2jSFHv\nwdgvg37KbU26GeLbTLwtX4fCjY51yHbdvKyeVaEjmMbjzu1+3qnvUHdSRCzD\nkGqeyj4PcgzGj7TDVxim5gdnA3Q///38HaG/zftKyvQQJGZJ8KnKjczASL0M\nLsbD7fufMRUhl+AwoAO8VVCR2MFwQy36DYLV4zUNz+7dflFqwkjcTEfpro41\nqj+5Aiall4yOVSHlX0IYTQW7P5X7UUAKwGOSGotIXI+BBFXQu8/CWMovC6nU\neTpkGtlCCOndjwMGcVzVtaEtBvJ3ezIZFkUiPYOUlpfw8SUiiYRkJuLLN20q\n4jr+UkL869GhL2eXG3ajriWYIvlriHru6XxjrAobLA4OGv64IqjIIyyefVoQ\naYSGzBBYm1fI0/pLNYE+6qgopGsun0t84uI8X+b8vR8BH2pn+rwgDwO2dxeT\nBVPSrl4kWkzRH/NTBr9Jg/iNiRRY78vt+yXMVN94+dPQJL8bzFLA7LwZ0UMZ\nlOGqgm/mBbZNIDmC7u1sU2dqj4TNVLyz3tW0yne5bM8XmfnXkFL2AYT3Cobz\nUQLs\r\n=VB6p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnVg9I+Yk7CqCUhjmhOxTl4CP3G1N4uzP9tMYOQz/dEAiEAn2HSWIuZLCNt4qdpRbcwHNBpSoqcJ40O/djS5rx0KWs="}]},"_npmUser":{"name":"anzerr","email":"ryan.anzer@epitech.eu"},"directories":{},"maintainers":[{"name":"anzerr","email":"ryan.anzer@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs.search_1.0.5_1642777182810_0.5369292365839444"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-21T14:59:42.759Z","1.0.5":"2022-01-21T14:59:42.966Z","modified":"2022-04-04T14:28:12.435Z"},"maintainers":[{"name":"anzerr","email":"ryan.anzer@epitech.eu"}],"description":"![GitHub Actions status | linter](https://github.com/anzerr/fs.search/workflows/linter/badge.svg) ![GitHub Actions status | publish](https://github.com/anzerr/fs.search/workflows/publish/badge.svg) ![GitHub Actions status | test](https://github.com/anzerr","homepage":"https://github.com/anzerr/fs.search#readme","keywords":[],"repository":{"type":"git","url":"git+ssh://git@github.com/anzerr/fs.search.git"},"author":{"name":"anzerr"},"bugs":{"url":"https://github.com/anzerr/fs.search/issues"},"license":"MIT","readme":"\n### `Intro`\n![GitHub Actions status | linter](https://github.com/anzerr/fs.search/workflows/linter/badge.svg)\n![GitHub Actions status | publish](https://github.com/anzerr/fs.search/workflows/publish/badge.svg)\n![GitHub Actions status | test](https://github.com/anzerr/fs.search/workflows/test/badge.svg)\n\nSearch for a given regex recursive in all files in a directory\n\n#### `Install`\n``` bash\nnpm install --save git+https://git@github.com/anzerr/fs.search.git\nnpm install --save @anzerr/fs.search\n```\n\n### `Example`\n``` javascript\nconst Search = require('fs.search');\n\nconst f = new Search({\n    regex: /[0-9A-Za-z]{32}/gi,\n    filterFolder: () => true,\n    skipEvents: true,\n    max: 5\n});\nf.get('./').then((found) => {\n    console.log(found);\n});\n\n// or\n\nconst f2 = new Search({\n    regex: /[0-9A-Za-z]{32}/gi,\n    max: 5\n});\nf2.on('found', ({file, found}) => {\n    console.log(file, found);\n}).get('./').then((found) => {\n    console.log(found);\n});\n\n```","readmeFilename":"README.md"}