{"_id":"list-directory-contents","_rev":"758445","name":"list-directory-contents","description":"Get the contents of a directory recursively (like ls -R)","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"time":{"modified":"2024-06-27T03:54:30.000Z","created":"2014-07-23T00:01:49.747Z","0.0.3":"2014-07-25T13:46:59.208Z","0.0.2":"2014-07-23T01:17:21.545Z","0.0.1":"2014-07-23T00:01:49.747Z"},"users":{},"author":{"name":"mikermcneil"},"repository":{"type":"git","url":"git://github.com/mikermcneil/list-directory-contents.git"},"versions":{"0.0.3":{"name":"list-directory-contents","version":"0.0.3","description":"Get the contents of a directory recursively (like ls -R)","keywords":["ls","ls -r","recursive ls","fs","dir","lstat","recursive stat","lstat","list files"],"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.3","dist":{"shasum":"836d72d80ec45650e6d2d8df91bf12e578dadbd8","tarball":"http://registry-npm.ywwl.com/list-directory-contents/download/list-directory-contents-0.0.3.tgz","integrity":"sha512-ZW5Ing7zIv4vZF1ZMKHqDx3uVr9yGwaE2FlqEKx5AQlsUFDRZpty82hZGJbyi9IeTFlc2au/bB7/GnU3T5vBxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYI7PRJazLxJmT4e3IJHlcY5DENutVvXl0zmsbbGHxAQIgZjAR9b17unTINE9o6M47amXRSIXWqIn+15Dqeaa2Dio="}],"size":1696,"noattachment":false,"key":"/list-directory-contents/-/list-directory-contents-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1406296019208,"_cnpm_publish_time":1406296019208},"0.0.2":{"name":"list-directory-contents","version":"0.0.2","description":"Get the contents of a directory recursively (like ls -R)","keywords":["ls","ls -r","recursive ls","fs","dir","lstat","recursive stat","lstat","list files"],"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.2","dist":{"shasum":"0f72aaa72f7126e9ba2ef264527b7c1368a19c96","tarball":"http://registry-npm.ywwl.com/list-directory-contents/download/list-directory-contents-0.0.2.tgz","integrity":"sha512-e4kXmHDBwqGz2RXNeJoDXiUlpS+Dg2BCuYw1GgRqJbcJpZ+qiRi7d/taNpkXIv0YqX9mL6igSujZLfj44izQ2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyZJT08nYGeH7dRoHHfhtWGScMh9Egq2T6HXzQXVtr7gIgYCFuwATjA/vRt7yLa84RQHfTdtUq8qEXzZMRhqLzQCo="}],"size":1442,"noattachment":false,"key":"/list-directory-contents/-/list-directory-contents-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1406078241545,"_cnpm_publish_time":1406078241545},"0.0.1":{"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":{},"publish_time":1406073709747,"_cnpm_publish_time":1406073709747}},"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","_attachments":{},"homepage":"https://github.com/mikermcneil/list-directory-contents","bugs":{"url":"https://github.com/mikermcneil/list-directory-contents/issues"},"license":"MIT"}