{"_id":"scan-directory","_rev":"2-f9446296b74eeb058b6af727cbda9f8a","name":"scan-directory","description":"[![NPM](https://nodei.co/npm/scan-directory.png?downloads=true&stars=true)](https://nodei.co/npm/scan-directory/)","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"scan-directory","version":"1.0.0","description":"[![NPM](https://nodei.co/npm/scan-directory.png?downloads=true&stars=true)](https://nodei.co/npm/scan-directory/)","main":"dist/index.js","scripts":{"test":"npm run test:pick -- '_tests/**/*spec.js'","test:pick":"BABEL_ENV=cjs mocha --compilers js:babel-core/register","build":"babel src -d dist","prepublish":"npm run build"},"author":{"name":"Anton Korzunov","url":"thekashey@gmail.com"},"license":"ISC","devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","chai":"^4.1.2","mocha":"^4.0.1"},"gitHead":"e256e57a98028485cb0c43d6fb0b8ce98b36efe1","_id":"scan-directory@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-StSp3ahu7EE1oqVfemF9nV7DVusIaVRuZVa4CZX5rzCUwspqO21wWdNshxZuFIQD7zj/HvvglBoycIizZbTBdw==","shasum":"46b6769dbd893d9bd7490ae9dcc43811a38b7fbb","tarball":"https://registry.npmjs.org/scan-directory/-/scan-directory-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjWCalaBtnL8dga0U/nzi74ZaJUv3qtHCcaaRCZpl4nAiB95nCAIxsUx5qF5QCzNOjTqFLFZidxCf1sUlbbTVpLmw=="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scan-directory-1.0.0.tgz_1511952227285_0.4061568146571517"},"directories":{}},"2.0.0":{"name":"scan-directory","version":"2.0.0","description":"[![NPM](https://nodei.co/npm/scan-directory.png?downloads=true&stars=true)](https://nodei.co/npm/scan-directory/)","main":"dist/es2015/index.js","scripts":{"test":"npm run test:pick -- '_tests/**/*spec.js'","test:pick":"BABEL_ENV=es2015 mocha --compilers js:babel-core/register","build:es5":"NODE_ENV=es5 babel src -d dist/es5","build:es2015":"NODE_ENV=es2015 babel src -d dist/es2015","build":"npm run build:es5 & npm run build:es2015","prepublish":"npm run build","perf":"npm run build && node perf/index.js"},"author":{"name":"Anton Korzunov","url":"thekashey@gmail.com"},"license":"ISC","devDependencies":{"@babel/cli":"^7.6.4","@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","benchmark":"^2.1.4","chai":"^4.1.2","mocha":"^4.0.1","totalist":"^1.0.0"},"gitHead":"037a55cffbdbcf17f227c402c72e2796dce51dec","_id":"scan-directory@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.10.2","dist":{"integrity":"sha512-0lsRfL5lKFQEQA//Ud4WatdCGD9krgzaEL9VqAPmddeLLvaKAgHEUvzN87V/0F9E2B813ha78PIiZFAtmLNwjw==","shasum":"99fcb923ca26b8e2541cc3afb34d50cf494ea65f","tarball":"https://registry.npmjs.org/scan-directory/-/scan-directory-2.0.0.tgz","fileCount":4,"unpackedSize":3559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsNK9CRA9TVsSAnZWagAAfzUQAIlnD5m0XC5ObxKmh5AQ\nOUWQYb6G1ZSDQUKdLe+W5337+xFdhcCT60IkbeiQuGKJ1nNi0FDVl5vVwc/V\ngExhzDdP54P/0NbnH4fGdE4LZMuLpf0LZAYhsV5ks2z7WTf6Q4T8Bja9iVnK\nxNtQBTNdaKebitxJKmdffCtD/+TNnSvJyCBy/UFDvjEerBFbT2Oa5lkHFtuL\nDXYju9zK6G4znePYJqKizNdnBqksh6wrQS5zYsfHk8KlVaEo0WZYTr5/E42q\nGNU2ojex1kOxXNRwyoOXQIZSpMHTgCf3AnxoSonUDzFBhIpzwO7V/+J9u3Do\n6LaeFdPdanT/TujHno8WxL1yMXybt3Vg5gtpKe5A5jITxvhQ0jbqkW2lH11G\nbt0iKQxOw7FyLVSjp6AyM+BC8hSJYMrkU2B+tfB0R5TDP8yLOj94B+N7NzBp\npWGjiNJTupA4iBwOqWAebiDtUXJacYlIHX8IDI47UcKYapwogTU6HtD6GkZp\nYfRseEFCQCzOrXwk7rT9zbhmxUnp8PMFKLIxNDb7Ci5WOn9KTqYuL1TAVvPx\nFrCqnHsChx3wh4AqaXLYQA7I3zteLHIwUmIZM1zfNNzGqr3oKRcJCEyre12y\n8Cios8n8zrAg8zjzZh2sCgRtSmYN1Hg4xfdo8eIZ2dtUUpfLLVRp0X9Wufd6\nThzS\r\n=NA/f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzpk4Ug4jy89P9Dq5e+OHqnbmW4aQ23xi+/cBcA9LooAiEAlY5Wi77Hi+h/X6YJPE06PYQ49PdkPVLS5gJR21esceI="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scan-directory_2.0.0_1571869373252_0.9577125874340986"},"_hasShrinkwrap":false}},"readme":"[![NPM](https://nodei.co/npm/scan-directory.png?downloads=true&stars=true)](https://nodei.co/npm/scan-directory/)\n\n__Blazing fast__ directory scan. Uses async/await underneath, doing all the stuff in async and parallel way.\n \n#Usage\n\n```javascript\nimport scan, {forExt} from 'scan-directory';\n\nconst list = await scan(\n   directory: string, \n   acceptFunction, \n   [rejectFunction=skipNodeModules]\n);\n```\nFor example\n```js\nconst list = await scan(\n  __dirName,    // where \n  forExt('js'), // what\n  (fileName) => fileName.match(somePattern)) // what NOT\n```\n\nWhere acceptFunction and rejectFunction - `(fileName:string, stat) => boolean`.\n\n# Node 8?\n`scan-directory` is bundled for __node 10__.\n\nFor older node versions use `scan-directory/cjs` entry point (no async/await)\n","maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"time":{"modified":"2022-05-17T05:08:45.515Z","created":"2017-11-29T10:43:47.415Z","1.0.0":"2017-11-29T10:43:47.415Z","2.0.0":"2019-10-23T22:22:53.407Z"},"author":{"name":"Anton Korzunov","url":"thekashey@gmail.com"},"license":"ISC","readmeFilename":"README.md"}