{"id":25572974,"url":"https://github.com/t3hmun/t3hmun-walk","last_synced_at":"2025-07-26T01:10:19.942Z","repository":{"id":57376287,"uuid":"67868061","full_name":"t3hmun/t3hmun-walk","owner":"t3hmun","description":"Asynchronous directory and subdir file listing for node.js v6+","archived":false,"fork":false,"pushed_at":"2017-02-22T16:20:57.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T16:45:21.440Z","etag":null,"topics":["directory","subdir","walk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t3hmun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-10T11:47:32.000Z","updated_at":"2022-02-06T16:56:58.000Z","dependencies_parsed_at":"2022-09-05T19:12:58.497Z","dependency_job_id":null,"html_url":"https://github.com/t3hmun/t3hmun-walk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/t3hmun/t3hmun-walk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3hmun%2Ft3hmun-walk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3hmun%2Ft3hmun-walk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3hmun%2Ft3hmun-walk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3hmun%2Ft3hmun-walk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t3hmun","download_url":"https://codeload.github.com/t3hmun/t3hmun-walk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3hmun%2Ft3hmun-walk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267097195,"owners_count":24035513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directory","subdir","walk"],"created_at":"2025-02-21T01:18:33.998Z","updated_at":"2025-07-26T01:10:19.893Z","avatar_url":"https://github.com/t3hmun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# t3hmun-walk \n\n## What\n\nSome functions that asynchronously list all the files in a directory and all of it sub-directories recursively. \nMakes use of features of ES6; intended for use with Node.js v6+. \n\n## Why\n\nThe existing packages looked either wrong or odd, also this seems like nice learning exercise (learning JS, Node.js, ES6).\n\n## Usage\n\n### All Files and Sub-Directories\n\n```js\nconst walk = require('walk');\n\nwalk.all('./aFolder', function(err, files){\n    // err will be an Error from fs.readdir() or fs.stat().\n\tif(err) throw err;\n\t\n\t// Will output a list of files, paths joined to the original dir specified.\n\tconsole.log(files);\n})\n```\n\n### Filtered\n\n```js\nconst walk = require('walk');\nconst path = require('path');\n\n// Function that only returns true for .md files.\nfunction onlyMdFiles(filePath){\n\treturn filePath.endsWith('.md');\n}\n\n// Functions that returns true for everything except .git directory.\nfunction excludeGit(dirPath){\n\t// dirPath may be the entire path or a relative path to the directory.\n\t// Use path to extract the dir name only.\n\tlet dirname = path.basename(dirName);\n\treturn dirname != '.git';\n}\n\nwalk.where('./', onlyMdFiles, excludeGit, function(err, list){\n\tif(err) throw err;\n\tconsole.log(files);\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3hmun%2Ft3hmun-walk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft3hmun%2Ft3hmun-walk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3hmun%2Ft3hmun-walk/lists"}