{"name":"walker","description":"A simple directory tree walker.","version":"1.0.8","homepage":"https://github.com/daaku/nodejs-walker","author":{"name":"Naitik Shah","email":"n@daaku.org"},"keywords":["utils","fs","filesystem"],"main":"lib/walker","repository":{"type":"git","url":"git+https://github.com/daaku/nodejs-walker.git"},"scripts":{"test":"NODE_PATH=./lib mocha --ui exports"},"dependencies":{"makeerror":"1.0.12"},"devDependencies":{"mocha":"9.1.3"},"license":"Apache-2.0","gitHead":"afedf7fc2dd65551583c8de1bb1c68640d098f4b","bugs":{"url":"https://github.com/daaku/nodejs-walker/issues"},"_id":"walker@1.0.8","_nodeVersion":"16.11.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==","shasum":"bd498db477afe573dc04185f011d3ab8a8d7653f","tarball":"http://registry-npm.ywwl.com/walker/download/walker-1.0.8.tgz","fileCount":5,"unpackedSize":5799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3AwqCRA9TVsSAnZWagAAEKUP/3V+pr1jrOXhkdAmxGWy\ncp6T7zJ8Pdv2WGw/n+sXYtkcFQSbvCRAAwBpsbrW58CaB7lYlligOQM24yKt\nWlg+wQ9zSC2MJtNI+cUQX9f9FVFVGMHUzxKjqc1CD7rHmQc/S4Fdr4iL75YE\nuuO5MrKayvf2onjXm9wN5J/jXWA5o0LFccwxuIuRQDBVEYe9x9kBSVz1Mfqn\nCpQLO1p7Mf5jM+YzuDPwAKiS4DJewwfY2/kdDHzlpsDRoJ+IyrP1SjAhZa1h\ncC+7MJrSkkYT3Ur045ePQ44DYgH/0Ic/4OdeV6P8bdSUlfAIIsJTL7VB8KJK\n1qx90qexnF+rPi8e+6ls2aof865eSUCPZHq60YjtWuIcwKJIyi/7EUWmgZ6q\njdbj6bUty0T6s0cJWRF0gIfAH6reIO5qlCfZvnsp1dflaRhyDuGGJTHStre2\nDnXaAgOmt2YZ/Vkdfic1GYYOZ2P6SWcvJQ/c1Ke3VWngZ+74onkX2m+3WOz4\nuIdbDDoUl7UCRpMSC7CB/JfLXdpPbW7m+unoLKVj1er9bdYO/Ec7ZyYhQmkp\nPEKfT8ST+w9elGX4DXQ8LZ2YCMx/XyAhz1GDZ5VOkW45HvzbD9ckAaAVGjzt\nBVPfJtvSfjbM3HjpaIm3vT36tTv1kzMw4evb9elgn98bGtHitE/KJpUtkQ4O\nEUyJ\r\n=3Zcq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExijBiCKtVaHtLvEycsJxzwhn8qwVAAlpyRUwjto3bDAiEAw3kwZL7VYp3bklLm7PJqQ4Tc+qBUGQzD/48Wd6e7pMI="}],"size":2227,"noattachment":false,"key":"/walker/-/walker-1.0.8.tgz"},"_npmUser":{"name":"daaku","email":"n@daaku.org"},"directories":{},"maintainers":[{"name":"daaku","email":"n@daaku.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/walker_1.0.8_1634997814524_0.6480255352259674"},"_hasShrinkwrap":false,"readme":"walker [![Build Status](https://secure.travis-ci.org/daaku/nodejs-walker.png)](http://travis-ci.org/daaku/nodejs-walker)\n======\n\nA nodejs directory walker. Broadcasts events for various file types as well as\na generic \"entry\" event for all types and provides the ability to prune\ndirectory trees. This shows the entire API; everything is optional:\n\n```javascript\nWalker('/etc/')\n  .filterDir(function(dir, stat) {\n    if (dir === '/etc/pam.d') {\n      console.warn('Skipping /etc/pam.d and children')\n      return false\n    }\n    return true\n  })\n  .on('entry', function(entry, stat) {\n    console.log('Got entry: ' + entry)\n  })\n  .on('dir', function(dir, stat) {\n    console.log('Got directory: ' + dir)\n  })\n  .on('file', function(file, stat) {\n    console.log('Got file: ' + file)\n  })\n  .on('symlink', function(symlink, stat) {\n    console.log('Got symlink: ' + symlink)\n  })\n  .on('blockDevice', function(blockDevice, stat) {\n    console.log('Got blockDevice: ' + blockDevice)\n  })\n  .on('fifo', function(fifo, stat) {\n    console.log('Got fifo: ' + fifo)\n  })\n  .on('socket', function(socket, stat) {\n    console.log('Got socket: ' + socket)\n  })\n  .on('characterDevice', function(characterDevice, stat) {\n    console.log('Got characterDevice: ' + characterDevice)\n  })\n  .on('error', function(er, entry, stat) {\n    console.log('Got error ' + er + ' on entry ' + entry)\n  })\n  .on('end', function() {\n    console.log('All files traversed.')\n  })\n```\n\nYou specify a root directory to walk and optionally specify a function to prune\nsub-directory trees via the `filterDir` function. The Walker exposes a number\nof events, broadcasting various file type events a generic error event and\nfinally the event to signal the end of the process.\n","publish_time":1634997814682,"_cnpm_publish_time":1634997814682,"dist-tags":{"latest":"1.0.8"}}