{"name":"walker","description":"A simple directory tree walker.","version":"1.0.2","homepage":"https://github.com/nshah/nodejs-walker","author":{"name":"Naitik Shah","email":"n@daaku.org"},"keywords":["utils","fs","filesystem"],"main":"lib/walker","repository":{"type":"git","url":"git://github.com/nshah/nodejs-walker.git"},"scripts":{"test":"./node_modules/.bin/expresso -c"},"dependencies":{"makeerror":">= 1.0.0"},"devDependencies":{"expresso":">= 0.8.1"},"engines":{"node":">= 0.4.1"},"_npmJsonOpts":{"file":"/Users/naitik/.npm/walker/1.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"walker@1.0.2","_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"b623aa49b1fc88303f6e16dbea69e53b1550f19a","tarball":"http://registry-npm.ywwl.com/walker/download/walker-1.0.2.tgz","integrity":"sha512-GHU0tPTl7skIAYGjBam3KOGA8TZM9+1ZUhbufs4Xb09HqK2+0DN6k2cx3L9oJhmfxj6B1n35q63NzwF6z9ci+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPLT1H0PvJi4rXKFWGO3j9SdmFuVeFOjOKPCIxSciBOQIhAKWhKjCtRnQOsa0b02YqZS4M/kfQ+qiEU9NGTf3ruNQx"}],"size":3337,"noattachment":false,"key":"/walker/-/walker-1.0.2.tgz"},"directories":{},"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":1311788506799,"maintainers":[{"name":"daaku","email":"n@daaku.org"}],"_cnpm_publish_time":1311788506799,"dist-tags":{"latest":"1.0.8"}}