{"_id":"node-readfiles","_rev":"19-b2e6ea1572e9297bf5514efbe22298c1","name":"node-readfiles","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.2":{"name":"node-readfiles","version":"0.0.2","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.2","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"e8fbe739927e8933b0901a7f9c267e46592346c6","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.2.tgz","integrity":"sha512-JUA/lYGjbba0ijwrDvZ66BLO9yXy49f8YBaYwdOwyPKihn7yRJgrTSQ4kjk4WnBdv9KSnaeMJBFspCnNWJC3vQ==","signatures":[{"sig":"MEYCIQCzkYr42g48C6PZbqrDNZzWpA8oXI0vHVYJb+MJRVSRdAIhAP00mV5gnCBvq4Pq5MgtItog/AQca58hxcsYpHLAPz4Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e8fbe739927e8933b0901a7f9c267e46592346c6","gitHead":"54cb1bb8ec8552263eb389c9f725aafa9b029a1f","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.2.tgz_1463546112437_0.3232190776616335","host":"packages-16-east.internal.npmjs.com"}},"0.0.3":{"name":"node-readfiles","version":"0.0.3","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.3","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"cc35825adaf418dfa260fac348a2d8767158d247","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.3.tgz","integrity":"sha512-0dpoweLsre3zUqn+ifGoxi59H3KfUwAa0Zm/Rh4WJwPuJx6oEm84hEbt+EMxxhSZqvcE9ACxX2G11Mmk8KkMKA==","signatures":[{"sig":"MEUCIQCEJfO4TP4JiLxXREy2UNfZntSenEmBfgSOGUQCFrApUQIga58ANtOqCpem7DwcomLJNU6dJc7vylBpHQ2XbRXUhkU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cc35825adaf418dfa260fac348a2d8767158d247","gitHead":"11935ecde08f26e4685b0edaa42091507e505adb","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.3.tgz_1463546664405_0.7907962505705655","host":"packages-16-east.internal.npmjs.com"}},"0.0.4":{"name":"node-readfiles","version":"0.0.4","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.4","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"02ef1bb42560d2841592c81c8467d8689cb36ddc","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.4.tgz","integrity":"sha512-eMQExfmAMa/Tbv7XHxijyWCj/vvACyID5jOIcdJL96QuzfBAmxbuhQAxqnU+93QPfnvB7bqTtHtcOA7Sm+dY6A==","signatures":[{"sig":"MEUCIA2yxcx/sRkWkOQmgnqWUFlgM3qG7EXUbBYndMtW1tDnAiEA9X5bkbjx5truAaSnX4xoj9D1d/YkKZ5DzoV41KeQUvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"02ef1bb42560d2841592c81c8467d8689cb36ddc","gitHead":"398a6b5bb55c7685e7ac46879ad141f92daf934e","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.4.tgz_1463546863676_0.6749484224710613","host":"packages-12-west.internal.npmjs.com"}},"0.0.5":{"name":"node-readfiles","version":"0.0.5","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.5","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"6d38f37dc2c531f612933d4ea4d7dc27f9efbd5e","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.5.tgz","integrity":"sha512-7+cTEtZLfxembR+GqBkmbpsbFVnLW8/iKDBqXCIudTIjBG1taodQwgYz0F3Ysos6YbMXgZ6AFmzNZFpeP1mDFA==","signatures":[{"sig":"MEUCIGx8pjo87sAl5xgY2m/dP/n5FgIhY4VxLJRVIFHV7TaAAiEAiXcERAQRc684vTbiWBUZ9hi7W7pElTOZyBnR8DyIwNY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6d38f37dc2c531f612933d4ea4d7dc27f9efbd5e","gitHead":"e8dcaae152f9deb3fb519ef3de4d09df01f3f7f2","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.5.tgz_1463547054756_0.23959506675601006","host":"packages-12-west.internal.npmjs.com"}},"0.0.6":{"name":"node-readfiles","version":"0.0.6","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.6","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"5dfb3c0b750aa6324592b8dce50a0e063c65a04b","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.6.tgz","integrity":"sha512-Ar2HyDX5ezwRdizM7BhwvUucVfLe3Swk0L9hgNp+gr1Lg5gSvELS/7JEi5qCqVJNM2r2JHT+uKXHqp/r2c0nGQ==","signatures":[{"sig":"MEYCIQD3Lkwhcn3lQSXW3jgELTrBbS2cBxIqKTwPiJYA34EshQIhAKLE8rdEmbFaVdli1viyR1JevpLQQnYFdL2jS+0ATLUL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5dfb3c0b750aa6324592b8dce50a0e063c65a04b","gitHead":"4c34bcbe8d23082c53ab578bc1887c838c5a4c13","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.6.tgz_1463548249605_0.724565886426717","host":"packages-16-east.internal.npmjs.com"}},"0.0.7":{"name":"node-readfiles","version":"0.0.7","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.7","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"0656b8d6af66f73d598f1b23d507a2b840edbf43","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.7.tgz","integrity":"sha512-dIKCOSpVyH0wYt/wyn1wyMqiBDStI1paBXB4OF458rqKudHRKls9NywyhR6k0bho0Vj0Ci+spelotUXc8DU5Yg==","signatures":[{"sig":"MEUCIQDiI5Mh5iTxuxpiD28uJXCnBq1Pyz1Y9wpHKGrjWc/iiwIgB4l2xFDkgs1CCiVi1daROYPBZiB3rzJeUU5oJ8sd1B0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0656b8d6af66f73d598f1b23d507a2b840edbf43","gitHead":"d7dd26ec2fb8e84acc0df6756e44a7c72bb41ba6","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"5.1.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.7.tgz_1463576965911_0.6309957099147141","host":"packages-16-east.internal.npmjs.com"}},"0.0.8":{"name":"node-readfiles","version":"0.0.8","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.8","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"homepage":"https://github.com/guatedude2/node-readfiles#readme","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"},"dist":{"shasum":"caa23c09463b457c1ca0912b598280637e542d17","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.8.tgz","integrity":"sha512-6PEOVXcdZgcFFHqAzGoAAeB8L7J4QDsLInUxDN4zo71OVRwxqUSnZNGEmxzSebJZW3nUOvLCxDHjnv76RLSkHw==","signatures":[{"sig":"MEUCIDBDocPvSQJgYJWY6sTGymxqhvLDCdaO/CCeuh3iM6NyAiEAo6if1y8MSL4iM7N952DJr4x6BD7eV3GQxFob6uiLTms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"caa23c09463b457c1ca0912b598280637e542d17","gitHead":"5fbff39b6d14a0b2a78d7bc1a43777c9e2c37e72","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"_npmVersion":"3.5.2","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"4.2.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.8.tgz_1463585736178_0.15521592157892883","host":"packages-12-west.internal.npmjs.com"}},"0.0.9":{"name":"node-readfiles","version":"0.0.9","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.0.9","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"homepage":"https://github.com/guatedude2/node-readfiles#readme","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"},"dist":{"shasum":"6f7501827d2bdec5109eea609408c538a65875a5","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.0.9.tgz","integrity":"sha512-szgkQ3t/kHSka5WuFiPA0ZbEBLos0cLNFk8EwrzTCidwvspXsBRIH7QA3lVVJN8nbJJH4NPbWCK4UjtRqbsFqQ==","signatures":[{"sig":"MEUCIQDPKE0zuBTazHpFmXHQXJDbwJZ3HODnHqArYmHxCfEQ0QIgMeOy+mjH7VUR9XIjINRhS3INW1WT0HgVBUx12lIanoU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6f7501827d2bdec5109eea609408c538a65875a5","gitHead":"fbad7233ee964b10f39c6bb702b92b4a2d9d84e7","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"_npmVersion":"3.5.2","description":"A lightweight Node.js module to recursively read files in a directory","directories":{},"_nodeVersion":"4.2.1","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.0.9.tgz_1463587775999_0.4389930502511561","host":"packages-16-east.internal.npmjs.com"}},"0.1.0":{"name":"node-readfiles","version":"0.1.0","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.1.0","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"homepage":"https://github.com/guatedude2/node-readfiles#readme","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"},"dist":{"shasum":"83a69921d390487dd89c0251dbf31457eb93fe74","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.1.0.tgz","integrity":"sha512-pn1v7KunMICy++nMpnNmQw9sR59GBAHxHn305Ua8Z57gbxWzznf/3L78i1xfK11LSmTaM8JcgIfJuU0uJBdoXg==","signatures":[{"sig":"MEQCIHdbkJAu48QtO8YVqTrnDUBoezd053yn8c3ZHxm8Qu5vAiAQmZeyM7cDkeDh8Bv9q2X4sPZO2suucRiJ9UpO/s/9/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"83a69921d390487dd89c0251dbf31457eb93fe74","gitHead":"5dae40bf928bc09a2e65f49c19b29f72ae9b325d","scripts":{"test":"mocha"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"_npmVersion":"3.3.12","description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","directories":{},"_nodeVersion":"5.1.1","dependencies":{"es6-promise":"^3.2.1"},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.1.0.tgz_1463630164907_0.601460000500083","host":"packages-12-west.internal.npmjs.com"}},"0.2.0":{"name":"node-readfiles","version":"0.2.0","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.2.0","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"homepage":"https://github.com/guatedude2/node-readfiles#readme","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"},"dist":{"shasum":"dbbd4af12134e2e635c245ef93ffcf6f60673a5d","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.2.0.tgz","integrity":"sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==","signatures":[{"sig":"MEQCIHV25cBY3pL9HLf+PW7ccM+2ZgIIZtOYPGbmN20Kd8I3AiBDP6P762rV9yi7rKDq6232C+66bn6TQ8IgR6g000nuug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dbbd4af12134e2e635c245ef93ffcf6f60673a5d","gitHead":"424a9fa1cbb49ee04ace128dea66f71ba924111b","scripts":{"lint":"eslint lib test","test":"mocha","start":"echo 'Not a runnable module' && exit 1","preversion":"npm run lint && npm test"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"_npmVersion":"3.5.2","description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","directories":{},"_nodeVersion":"4.2.1","dependencies":{"es6-promise":"^3.2.1"},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","sinon":"^1.17.4","eslint":"^2.10.2","mock-fs":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles-0.2.0.tgz_1463679353414_0.17859529424458742","host":"packages-12-west.internal.npmjs.com"}},"0.3.0":{"name":"node-readfiles","version":"0.3.0","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.3.0","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"5738b72e3eca16727e1dd61bb0db12acd7d0a2f9","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.3.0.tgz","fileCount":20,"integrity":"sha512-CjfSRdcDwLm4WM2ylKcIuFTmi9Vv5e3x7YpL7lEpgYvrrZE2TNJ6CMKrp/h7pz60fTzyaUofau7xqvYgi4U09A==","signatures":[{"sig":"MEQCIG1PJ45lBzVrNa/7XNUnJ/VC0K3HakRO0Pos64zSMqbbAiBZkeF3DM0qRVYT/FcovpDU8pBNe0mJlImpw2XkokASLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilwWcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdWA/9E9kIJ8orX8SXSNV2oCXHM7TNo+q0eNRz06S6as2ombal+qsO\r\naaNU76MadpnPt0wCeLfUgCAM6/MKltJj8yv5gxWsEWORtlSpvRvJtv5nL1Gy\r\nSk5nzyxONxGWnNNr7yGNr1PgAOCgOlCsQoSBhEMPB5/E6B8SmnhAkwv0Ri6Y\r\n6ywNkzrSQxQvAp+jMUkqHgGti44/47v7GCX4/2fL+87AXCHozn4XyBjdq04w\r\n5A0EVLBPhtmD6tl7rTf86X+JnJUZz0lLK1ZDHmmKGUuqNW3FIe5mxT8AQRsO\r\nzLCJo4bkmJ7R7E3ICX3hPSQCiD6t5B3L58KAXJ/BUEjzek8lgu1FW5hoSQjL\r\nZhdX075OGjjycsfLIPPRvMEGEqHjyGMEhRC9SNTcxfxu3/EmmXLaiwGeaZnI\r\nb44X+DYsFwCuP/oZJiXn70bwjHaSd9eHCVxzGSgdXD4lYSqSf1XqjyxPlA7Z\r\na6tpxmVy3dw44LQhIceXORtXnJAjmRrXyk/wzpKXi5DCnhju0FqBOS1u5DLD\r\nWrOAhXt9poKFBlxQTx98eMPn+J7eVonhCo+VyOvn4i2KuHKDA+jlc9SIR7Cw\r\n8lW1JtODootloXjzAU3M8gcI3JeYVlUREbvbGQqIz+NUe1Rqi9Vs8ljS5YT+\r\nzT6S9Yw73mvL2PCNMQz6bHCMSZ8Mcr/IFvE=\r\n=LqAt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/readfiles.js","scripts":{"lint":"eslint src test","test":"jest","build":"tsc","start":"echo 'Not a runnable module' && exit 1","preversion":"npm run lint && npm test"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","directories":{},"licenseText":"(The MIT License)\n\nCopyright (c) 2016 Alejandro Gonzalez <guatedude2@hotmial.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.0","eslint":"^8.16.0","ts-jest":"^28.0.3","ts-node":"^10.8.0","prettier":"^2.6.2","typescript":"^4.7.2","@types/jest":"^27.5.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.27.0","@typescript-eslint/eslint-plugin":"^5.27.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles_0.3.0_1654064540726_0.13819091637911707","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"node-readfiles","version":"0.3.1","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"Alejandro Gonzalez Sole"},"license":"MIT","_id":"node-readfiles@0.3.1","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"dist":{"shasum":"f8519b5da0323de90a1f2aba1a335764e0ccf3c0","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.3.1.tgz","fileCount":20,"integrity":"sha512-2Gu+SQWWwXbcJm7aImNK4SvYGRC1fZMd2YAiA2EN72OWaV6zRzrV5amZ3dXWXiNG5vwzXZyQTIpNdLNuVUpx7w==","signatures":[{"sig":"MEUCIQDbba7YNyYuikpPB/4R8prHk1+LtUI5lo1gizAjo3Zx+AIgSFYwIZSAvVia1LDcaNSvMRCGop9JBJj3L9t5/5o2y6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqfobACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPvA//UiO7jVa8uDGFVbk1TKhUHwkAT0UOmspyl3wIi7WVL6RrFzw/\r\nkEetYQRYSLmKm6liu0A8NHqJzcW2nSndlUV80yiCZSseRp45R9X054NH2n5+\r\naGp1Sw6R99OBodB9iMBPBCqNnQCi/XsA9nSTdjIbAtoi14XU+W7/cydwYx8D\r\nnMxu2gY6qoElmXFfdunxBLddCRpfacVCxqUe9L9kl6ynElnoeUXANBp/nl8q\r\nzc11lOzZzTyKyXMLONRGjhXHkcpc3UI/YrXoDNp8waoq9173RMJIXdDeV5x/\r\neD+2sar2lwLueAi7WFdweHMYvS8eZ5tEuH1Ak4GOuWA3OlXHCnTnfCgx8EGT\r\nmDf8JAC0F4f/b8NN5AXYW6Pf6RGO9NBrbQZ7im1t7dAiAh1qXIjoxKEIOiGp\r\nHHcQ6Ci3CCXp5Uu3dNRUC9C1zTvYLEmr60913B2O8jAKyNpFneou25JfIpPr\r\nOaeiWftdA5k2M6ZWGLNE7xYZDBcwCUGRaM3+qnPsm0JkX+1gmWKi0Dj6r4k4\r\nZA4jThdAUx7qhm5TYstUkJ8ZApHvO4e26LJtXAhvsL2VfUObD20UVGbAxfmS\r\nhZd04z1cPRN2cqy5uQEWbvB67TpFfQohrbHrJ3ZNeDb7/h94W7rxcNOizLzC\r\nrdfujEiWLr5P9OYiJIAJwG86YPM2cfdoqcU=\r\n=wQN0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/readfiles.js","scripts":{"lint":"eslint src test","test":"jest","build":"tsc","start":"echo 'Not a runnable module' && exit 1","preversion":"npm run lint && npm test"},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"repository":{"url":"git+https://github.com/guatedude2/node-readfiles.git","type":"git"},"description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","directories":{},"licenseText":"(The MIT License)\n\nCopyright (c) 2016 Alejandro Gonzalez <guatedude2@hotmial.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.0","eslint":"^8.16.0","ts-jest":"^28.0.3","ts-node":"^10.8.0","prettier":"^2.6.2","typescript":"^4.7.2","@types/jest":"^27.5.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.27.0","@typescript-eslint/eslint-plugin":"^5.27.0"},"_npmOperationalInternal":{"tmp":"tmp/node-readfiles_0.3.1_1655306778797_0.9644522994867637","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"node-readfiles","version":"0.4.0","description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","main":"lib/readfiles.js","scripts":{"start":"echo 'Not a runnable module' && exit 1","test":"jest","build":"tsc","lint":"eslint src test","preversion":"npm run lint && npm test"},"keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"author":{"name":"guatedude2"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/guatedude2/node-readfiles.git"},"devDependencies":{"@types/jest":"^27.5.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","eslint":"^8.16.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.1.0","prettier":"^2.6.2","ts-jest":"^28.0.3","ts-node":"^10.8.0","typescript":"^4.7.2"},"dependencies":{},"_id":"node-readfiles@0.4.0","gitHead":"45678a62b7c10039455bd4d93ebf3211595b1f59","types":"./lib/readfiles.d.ts","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"},"homepage":"https://github.com/guatedude2/node-readfiles#readme","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-PURoaOXkXie5o6EbytZR1NqitQk0eHkpzrjhjmAlBoOVyrok56nzZNeS4LDRv2CtwbJ5wFOKBksA9TYh3zooNQ==","shasum":"ff4af37e735b242860ec7729420751b530dcc1bd","tarball":"https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.4.0.tgz","fileCount":19,"unpackedSize":100641,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFfRRNhtLw7zvzP9SJZA1HkX2C2j9XX8JdcDAApCzskVAiBe7mn1GvPGqmC5HFkTnAJqzdGpsW3HYjUrlmQhKOSUHQ=="}]},"_npmUser":{"name":"guatedude2","email":"guatedude@gmail.com"},"directories":{},"maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readfiles_0.4.0_1767995504253_0.9039399744721042"},"_hasShrinkwrap":false}},"time":{"created":"2016-05-18T04:28:54.687Z","modified":"2026-01-09T21:51:44.594Z","0.0.1":"2016-05-18T04:28:54.687Z","0.0.2":"2016-05-18T04:35:15.075Z","0.0.3":"2016-05-18T04:44:27.041Z","0.0.4":"2016-05-18T04:47:46.121Z","0.0.5":"2016-05-18T04:50:57.332Z","0.0.6":"2016-05-18T05:10:52.441Z","0.0.7":"2016-05-18T13:09:28.735Z","0.0.8":"2016-05-18T15:35:38.739Z","0.0.9":"2016-05-18T16:09:38.834Z","0.1.0":"2016-05-19T03:56:07.218Z","0.2.0":"2016-05-19T17:35:55.844Z","0.3.0":"2022-06-01T06:22:20.929Z","0.3.1":"2022-06-15T15:26:18.990Z","0.4.0":"2026-01-09T21:51:44.405Z"},"author":{"name":"guatedude2"},"license":"MIT","keywords":["readfiles","read","readfile","readdir","dir","path","pattern","fs"],"repository":{"type":"git","url":"git+https://github.com/guatedude2/node-readfiles.git"},"description":"A lightweight Node.js module to recursively read files in a directory using ES6 Promises","maintainers":[{"name":"guatedude2","email":"guatedude@gmail.com"}],"readme":"# node-readfiles\nA lightweight node.js module to recursively read files in a directory using ES6 Promises.\n\n## Installation\n\n    npm install node-readfiles\n\n## Usage\n\nYou can safely add `readfiles` anywhere in your project.\n\n```javascript\nvar readfiles = require('node-readfiles');\n```\n\n### _Promise(files):_ readfiles(dir, [options], [callback])\nAsynchronusly read the files in a directory returning a **Promise**.\n\n#### dir\nA relative or absolute path of the directory to read files.\n\n#### options\n\nAn optional object parameter with the following properties:\n\n* **reverse**: a boolean value that reverses the order of the list of files before traversing them (defaults to false)\n* **filenameFormat**: one of `readfiles.FULL_PATH`, `readfiles.RELATIVE`, or `readfiles.FILENAME`, whether the callback's returns the full-path, relative-path or only the filenames of the traversed files. (default is `readfiles.RELATIVE`)\n* **rejectOnError**: a boolean value whether to stop and trigger the \"doneCallback\" when an error occurs (defaults to true)\n* **filter**: a string, or an array of strings of path expression that match the files being read (defaults to '**')\n  * `?` matches one character\n  * `*` matches zero or more characters\n  * `**` matches zero or more 'directories' in a path\n* **readContents**: a boolean value whether to read the file contents when traversing the files <sup>[\\[1\\]](#read-files)</sup> (defaults to true)\n* **encoding**: a string with the encoding used when reading a file (defaults to 'utf8')\n* **depth**: an integer value which limits the number sub-directories levels to traverse for the given path where `-1` is infinte, and `0` is none (defaults to -1)\n* **hidden**: a boolean value whether to include hidden files prefixed with a `.` (defaults to false)\n\n\n### callback(err, filename, content, stat)\n\nThe optional callback function is triggered everytime a file is found. If there's an error while reading the file the `err` parameter will contain the error that occured, When `readContents` is true, the `contents` parameter will be populated with the contents of the file encoded using the `encoding` option. For convenience the `stat` result object is passed to the callback for you to use.\n\n<span id=\"read-files\">[1]</span> The `contents` parameter will be `null` when the `readContents` option is `false`.\n\n\n##### Asynchronous Callback\nWhen working with asynchronous operations, you can simply return a `function (next) { ... }` which will enabled you to completed your asynchronous operation until you call `next()`. \n\n```javascript\nreadfiles('/path/to/dir/', function (err, filename, content, stat) {\n  if (err) throw err;\n  return function (next) {\n    setTimeout(function () {\n      console.log('File ' + filename);\n      next();\n    }, 3000);\n  };\n});\n```\n\n\n### _Promise(files)_\n\nWhen calling `readfiles`, an ES6 Promise is returned with an array of all the files that were found. You can then call `then` or `catch` to see if `readfiles` encountered an error.\n\n```javascript\nvar readfiles = require('node-readfiles');\n\nreadfiles('/path/to/dir/', function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n}).catch(function (err) {\n  console.log('Error reading files:', err.message);\n});\n```\n\n## Examples\n\nThe default behavior, is to recursively list all files in a directory. By default `readfiles` will exclude all dot files.\n\n```javascript\nreadfiles('/path/to/dir/', function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n  console.log(files.join('\\n'));\n});\n```\n\nRead all files in a directory, excluding sub-directories.\n\n```javascript\nreadfiles('/path/to/dir/', {\n  depth: 0\n}, function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n  console.log(files.join('\\n'));\n});\n```\n\nThe above can also be accomplished using the `filter` option.\n\n```javascript\nreadfiles('/path/to/dir/', {\n  filter: '*' // instead of the default '**'\n}, function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n  console.log(files.join('\\n'));\n});\n```\n\nRecursively read all files with \"txt\" extension in a directory and display the contents.\n\n```javascript\nreadfiles('/path/to/dir/', {\n  filter: '*.txt'\n}, function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n});\n\n```\n\nRecursively read all files with that match \"t?t\" in a directory and display the contents.\n\n```javascript\nreadfiles('/path/to/dir/', {\n  filter: '*.t?t'\n}, function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename + ':');\n  console.log(content);\n}).then(function (files) {\n  console.log('Read ' + files.length + ' file(s)');\n});\n\n```\n\nRecursively list all json files in a directory including all sub-directories, without reading the files.\n\n```javascript\nreadfiles('/path/to/dir/', {\n  filter: '*.json',\n  readContents: false\n}, function (err, filename, content) {\n  if (err) throw err;\n  console.log('File ' + filename);\n});\n\n```\n\n## License\nMIT licensed (See LICENSE.txt)\n","readmeFilename":"README.md","users":{"davidbwaters":true},"homepage":"https://github.com/guatedude2/node-readfiles#readme","bugs":{"url":"https://github.com/guatedude2/node-readfiles/issues"}}