{"id":17242887,"url":"https://github.com/imcuttle/http-file-explorer-express4.x","last_synced_at":"2025-10-27T10:32:36.064Z","repository":{"id":45112846,"uuid":"60514727","full_name":"imcuttle/http-file-explorer-express4.x","owner":"imcuttle","description":"http-file-explorer-express4.x","archived":false,"fork":false,"pushed_at":"2022-01-07T14:47:38.000Z","size":26,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T21:11:33.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/imcuttle.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-06-06T09:12:48.000Z","updated_at":"2019-11-04T03:51:47.000Z","dependencies_parsed_at":"2022-09-22T17:12:06.579Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/http-file-explorer-express4.x","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/imcuttle%2Fhttp-file-explorer-express4.x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fhttp-file-explorer-express4.x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fhttp-file-explorer-express4.x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fhttp-file-explorer-express4.x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/http-file-explorer-express4.x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238481905,"owners_count":19479755,"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":"2024-10-15T06:14:19.998Z","updated_at":"2025-10-27T10:32:28.128Z","avatar_url":"https://github.com/imcuttle.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP文件浏览 Version2\n\n## 改进\n之前做的[HTTP浏览](http://moyuyc.github.io/2016/05/28/node-express-jade%E5%AE%9E%E7%8E%B0HTTP%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8/)是使用express2.x版本做的...，因为参考书比较旧了。\n1. `express2.x`中没有`express4.x`中的`res.sendFile()`方法，之前发送文件是使用的`stream.pipe()`方法，导致不支持继续下载，而且用户不能知道下载进度，在线音乐视频播放也不能选择时间跳跃欣赏。`res.sendFile()`方法可以将本地文件以静态资源发送给用户，所有问题迎刃而解。\n2. 旧版本不支持`java/c/cpp/js/css/html`等代码文件和`md/markdown`文件在线查看，所以进行改进。\n3. 利用`Bootstrap responsive utils`和`Bootstrap grid system`进行响应式布局。\n4. 监控`root.txt`文件，改变root后无需重启服务器。\n5. 去除对`q.js`依赖，使用原生`Promise`\n\n## 说明\n- `root.txt` :共享文件夹路径\n- `app.js` :入口\n\n## 使用\n1.       npm install\n2.       npm start\n3.       http://localhost:3500/ ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fhttp-file-explorer-express4.x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Fhttp-file-explorer-express4.x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fhttp-file-explorer-express4.x/lists"}