{"id":24976887,"url":"https://github.com/rezigned/node-file-walker","last_synced_at":"2025-04-11T14:13:17.621Z","repository":{"id":57235661,"uuid":"11662720","full_name":"rezigned/node-file-walker","owner":"rezigned","description":"Node.js module that recursively traversing files/directories","archived":false,"fork":false,"pushed_at":"2014-12-11T17:28:38.000Z","size":182,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T14:36:43.306Z","etag":null,"topics":[],"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/rezigned.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":"2013-07-25T14:34:56.000Z","updated_at":"2021-07-24T02:31:49.000Z","dependencies_parsed_at":"2022-08-31T20:50:53.608Z","dependency_job_id":null,"html_url":"https://github.com/rezigned/node-file-walker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fnode-file-walker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fnode-file-walker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fnode-file-walker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fnode-file-walker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rezigned","download_url":"https://codeload.github.com/rezigned/node-file-walker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247550675,"owners_count":20956986,"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","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":[],"created_at":"2025-02-03T22:59:29.637Z","updated_at":"2025-04-11T14:13:17.597Z","avatar_url":"https://github.com/rezigned.png","language":"JavaScript","readme":"## A Simple file/directory traversal module\n\n[![Build Status](https://travis-ci.org/rezigned/node-file-walker.png)](https://travis-ci.org/rezigned/node-file-walker)\n\n### Installation\n\n```\nnpm install file-walker\n```\n\n### Callback arguments\n\n* files - an array of files/directories in current directory e.g. `['dummy', 'test.js']`\n* dir - directory name e.g. `'./test'`\n* level - Current directory level starting from `0`\n\n### Example usage\n\nAssume we have the following directory structure\n\n```\n./test/\n  +- a.js\n  +- b/\n     +- c.js\n     +- d.js\n```\n\n```js\nvar walk = require('file-walker');\n\nwalk('./directory', function(dir, files, level) {\n    // 1st iteration, level = 0, dir = './test', files = ['a.js', 'b']\n    // 2nd iteration, level = 1, dir = './test/b', files = ['c.js', 'd.js']\n\t// your logic\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fnode-file-walker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frezigned%2Fnode-file-walker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fnode-file-walker/lists"}