{"id":13799252,"url":"https://github.com/Secbone/koa-static2","last_synced_at":"2025-05-13T06:32:54.569Z","repository":{"id":71589144,"uuid":"50658657","full_name":"Secbone/koa-static2","owner":"Secbone","description":"Middleware for Koa2 to serve a folder under a name declared by user","archived":false,"fork":false,"pushed_at":"2016-08-22T14:33:19.000Z","size":9,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T09:31:16.876Z","etag":null,"topics":["koa2"],"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/Secbone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-29T11:31:55.000Z","updated_at":"2023-07-15T05:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"94494899-564d-43a4-8f04-b481481edc09","html_url":"https://github.com/Secbone/koa-static2","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"27d638e830b7c737ac5f3f5ae393feecd7b2bbdd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Secbone%2Fkoa-static2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Secbone%2Fkoa-static2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Secbone%2Fkoa-static2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Secbone%2Fkoa-static2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Secbone","download_url":"https://codeload.github.com/Secbone/koa-static2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225183840,"owners_count":17434196,"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":["koa2"],"created_at":"2024-08-04T00:01:00.344Z","updated_at":"2024-11-18T13:32:11.605Z","avatar_url":"https://github.com/Secbone.png","language":"JavaScript","readme":"# Koa-static2\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Downloads][downloads-image]][downloads-url]\n\nMiddleware for [Koa2](https://github.com/koajs/koa/tree/v2.x) to serve a folder under a name declared by user\n\n## Install\n\n```\nnpm install koa-static2\n```\n\n## Usage\n\n```js\nimport Koa from \"koa\";\nimport serve from \"koa-static2\";\n\nconst app = new Koa();\n\napp.use(serve(\"static\", __dirname + \"/assets\"));\n```\n## License\n\nMIT\n\n\n[npm-image]: https://img.shields.io/npm/v/koa-static2.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/koa-static2\n[downloads-image]: http://img.shields.io/npm/dm/koa-static2.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/koa-static2\n[travis-image]: https://img.shields.io/travis/Secbone/koa-static2.svg?style=flat-square\n[travis-url]: https://travis-ci.org/Secbone/koa-static2\n","funding_links":[],"categories":["仓库"],"sub_categories":["中间件"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSecbone%2Fkoa-static2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSecbone%2Fkoa-static2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSecbone%2Fkoa-static2/lists"}