{"id":18951231,"url":"https://github.com/hmmhmmhm/nested-static","last_synced_at":"2026-04-11T07:42:47.286Z","repository":{"id":98551603,"uuid":"177267065","full_name":"hmmhmmhm/nested-static","owner":"hmmhmmhm","description":"🗂️ Helps register nested folders to the express module.","archived":false,"fork":false,"pushed_at":"2019-03-23T11:23:00.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T00:33:23.797Z","etag":null,"topics":["express","express-js","express-server","express-starter","folder","nested","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmmhmmhm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-23T09:02:23.000Z","updated_at":"2019-11-26T21:44:00.000Z","dependencies_parsed_at":"2023-05-29T14:15:39.218Z","dependency_job_id":null,"html_url":"https://github.com/hmmhmmhm/nested-static","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hmmhmmhm/nested-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fnested-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fnested-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fnested-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fnested-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmmhmmhm","download_url":"https://codeload.github.com/hmmhmmhm/nested-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fnested-static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["express","express-js","express-server","express-starter","folder","nested","nodejs"],"created_at":"2024-11-08T13:27:08.949Z","updated_at":"2026-04-11T07:42:47.280Z","avatar_url":"https://github.com/hmmhmmhm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nested-static\n🗂️ Helps register nested folders to the express module.\n\n\u003e THIS MODULE SUPPORT **\u003cu\u003eTYPESCRIPT(.d.ts)\u003c/u\u003e**\n\nWhen using Express module, if you register a folder as a function such as us, Can experience it, the folder in that folder does not automatically register a url. nested-static helps you register nested folders in these situations.\n\n## Installation\n\n```bash\nnpm install nested-static --save\n```\n\n## Example\n\n```js\nconst nestedStatic = require(\"nested-static\")\n\nnestedStatic(`${__dirname}/../static`, (folders)=\u003e{\n    for(let {staticPath, subPath} of folders){\n        console.log (`Folder Registered ${staticPath} to ${subPath}`)\n        app.use(subPath, express.static(staticPath))\n    }\n})\n```\n\n## License\n\nMIT Licensed. (Copyleft)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmmhmmhm%2Fnested-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmmhmmhm%2Fnested-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmmhmmhm%2Fnested-static/lists"}