{"name":"tiny-readdir","description":"A simple promisified recursive readdir function.","version":"1.2.2","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile"},"bugs":{"url":"https://github.com/fabiospampinato/tiny-readdir/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-readdir.git"},"keywords":["readdir","recursive","promise","simple","tiny"],"engines":{"node":">= 10.12.0"},"dependencies":{"promise-concurrency-limiter":"^1.0.0"},"devDependencies":{"@types/node":"^14.14.9","rimraf":"^3.0.2","typescript":"^4.1.2","typescript-transform-export-interop":"^1.0.2"},"gitHead":"7ad51734d4083bdc0ccf8b0020ae7ded2b7ffd28","homepage":"https://github.com/fabiospampinato/tiny-readdir#readme","_id":"tiny-readdir@1.2.2","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"integrity":"sha512-eAflCznBqdancBmj+LLuqU2c5fcKizcQEWDfohN6oyxgFpmH7jDFzdRvDemtOVv2STVkqvvGQbed+hZ6vkOlzg==","shasum":"a9a879fad12fa9a38f1e7403f947b88b2fda634e","tarball":"http://registry-npm.ywwl.com/tiny-readdir/download/tiny-readdir-1.2.2.tgz","fileCount":12,"unpackedSize":8934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf65AQCRA9TVsSAnZWagAAaYIP/RPkhhoatkFvOzEjCNI7\nuUkZse71/5Y9N17vQiny5uekw3cvZaSlRuzNm0dGES3Xzhfq6mBXfVMffgKE\nDnf19RuysWuQxAkgr6XUYJMqNSdRdkjcKFAiMJNYuUFUmAEynpXybGwROUPc\na/EjvTAWN9stZ+SvLOWDRlZ7c63rVykyXjPbqCPZnKW8Uq405YdjIvypgITy\nX0BSxQOyMBPut1zt5ZHNJiFgj26nhSR4MdFAjYziL5C5X3HyyvG2Fdl0Bq/2\n6xVlzqPeWV7xwpRMSj+jnyjDohBwdjYAcN3uxBa7Dx70B00duTzxXZz6HTwX\nfPrYDFZkOsKYVD1xhLvy9LVqxVsLrjmpC9xddX2bje3CaKfDY/rTiH08gDWq\naBZCGvhYQLffnn98AytY1lP40rBclNJUE8B6tlFFGPufoCH7Y58sbKt433Tw\nggOPlsn6WG2tqS+WOC2h01gMwU1d80PqKWFQ/ZxbGiCaNrv08OQfgQRmUcaw\naBd7uE5ZyPThRg8aWKdtE7DzFZ8EVObCywOTYKFGYqan13m4WEH3cDRLj3Y2\nfU9VKxIms3BAUKaGfv72FnHwyS7LaAVkQb5jSARlnCuoQSBRt/sG0DYjNYfQ\nDRQ2sUq+qP/tqxV1Tc4EpqaNzcdm0XXwy+0SEoPjs+0FvolVbJ+LcYXwFBc0\nfYaW\r\n=Oa1B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAylYgHwFh4muEAkuqD9swM58fKO6ccHeguY51NXdnLLAiBMotAYYZApxHIFsjg9fW4XW6axfgqgISI5517ib7cWYA=="}],"size":3701,"noattachment":false,"key":"/tiny-readdir/-/tiny-readdir-1.2.2.tgz"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-readdir_1.2.2_1609273359623_0.4985949297228669"},"_hasShrinkwrap":false,"readme":"# Tiny Readdir\n\nA simple promisified recursive readdir function.\n\n## Install\n\n```sh\nnpm install --save tiny-readdir\n```\n\n## Usage\n\n```ts\nimport readdir from 'tiny-readdir';\n\nconst aborter = new AbortController ();\n\nconst result = await readdir ( '/foo/bar', {\n  depth: 20, // Maximum depth to look at\n  limit: 1_000_000, // Maximum number of files explored, useful as a stop gap in some edge cases\n  followSymlinks: true, // Whether to follow symlinks or not\n  ignore: targetPath => /node_modules/.test ( targetPath ), // Function that if returns true will ignore this particular file or a directory and its descendants\n  signal: aborter.signal, // Optional abort signal, useful for aborting potentially expensive operations\n  onDirents: dirents => console.log ( dirents ) // Optional callback that will be called as soon as new dirents are available, useful for example for discovering \".gitignore\" files while searching\n});\n\nconsole.log ( result.directories ); // => Array of absolute paths pointing to directories\nconsole.log ( result.files ); // => Array of absolute paths pointing to files\nconsole.log ( result.symlinks ); // => Array of absolute paths pointing to symlinks\n\nconsole.log ( result.directoriesNames ); // => Set of directories names found\nconsole.log ( result.filesNames ); // => Set of files name found\nconsole.log ( result.symlinksNames ); // => Set of symlinks names found\n\nconsole.log ( result.directoriesNamesToPaths ); // => Record of directories names found to their paths\nconsole.log ( result.filesNamesToPaths ); // => Record of files names found to their paths\nconsole.log ( result.symlinksNamesToPaths ); // => Record of symlinks names found to their paths\n\nsetTimeout ( () => aborter.abort (), 10000 ); // Aborting if it's going to take longer than 10s\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1609273359741,"_cnpm_publish_time":1609273359741,"dist-tags":{"latest":"3.1.1"}}