{"name":"list-directory-contents","version":"0.0.1","description":"Get the contents of a directory recursively (like ls -R)","keywords":[],"dependencies":{"walker":"~1.0.6"},"scripts":{"start":"node app.js","debug":"node debug app.js","test":"mocha"},"main":"app.js","repository":{"type":"git","url":"git://github.com/mikermcneil/list-directory-contents.git"},"author":{"name":"mikermcneil"},"license":"MIT","devDependencies":{"mocha":"~1.20.1","fs-extra":"~0.10.0"},"bugs":{"url":"https://github.com/mikermcneil/list-directory-contents/issues"},"homepage":"https://github.com/mikermcneil/list-directory-contents","_id":"list-directory-contents@0.0.1","dist":{"shasum":"db62dc73bc4ac8486bd416cd91e538ae89c26618","tarball":"http://registry-npm.ywwl.com/list-directory-contents/download/list-directory-contents-0.0.1.tgz","integrity":"sha512-kTLeLBhvDtqZYWiX08R3Mg0qpBQEkMGnqvqn7tI7A8C8u19mV2eoTZdwbEw1fl2MFQNzGc07TUYe+IAw6TbOVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXsH7z+TrGKo5kY0nF6nBHOKWx6PB3ORtfENSmYBWM2QIhANYPoppokhjtplayjVT0gFjIywsFlBUAUGHo0eSrchM/"}],"size":99653,"noattachment":false,"key":"/list-directory-contents/-/list-directory-contents-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"readme":"# list-directory-contents\n\nImplements `ls -R` for Node.js.\n\n## Installation\n\n```sh\n$ npm install list-directory-contents\n```\n\n## Usage\n\n```javascript\nvar ls = require('list-directory-contents');\n\nls('./', function (err, tree) {\n  \n  // NOTE:\n  // everything ending in `/` in the output below is a path to a directory\n  // all other paths are to files\n  \n  \n  // `tree` =>\n  [\n    'index.js',\n    'README',\n    'package.json',\n    'CONTRIBUTING.md',\n    'node_modules/',\n\n    'node_modules/lodash/',\n    'node_modules/async/',\n    'node_modules/fs-extra/',\n\n    'node_modules/fs-extra/index.js',\n    'node_modules/fs-extra/lib/',\n    'node_modules/fs-extra/node_modules/'\n  ];\n  \n});\n```\n\n## Why?\n\nThis module is merely a convenience; a thin wrapper for [walker](https://github.com/daaku/nodejs-walker).  It presents a minimalist API for the most basic task you're likely to get up to: getting all the things in a directory, all the things in those things, and so forth.  @daaku did all the hard work :)\n\nFor more advanced use cases like built-in file vs. dir parsing, fetching `lstat` metadata, or controlling the universe mind bullets, please use [walker](https://github.com/daaku/nodejs-walker) directly.  See https://github.com/jprichardson/node-fs-extra/issues/63#issuecomment-49733873 for ergaleígony.\n\n\n## License\n\nMIT &copy; Mike McNeil 2014\n","publish_time":1406073709747,"_cnpm_publish_time":1406073709747,"dist-tags":{"latest":"0.0.3"}}