{"id":19580766,"url":"https://github.com/warriorbrian/node-knife4j","last_synced_at":"2026-03-04T05:02:19.553Z","repository":{"id":153750543,"uuid":"630543101","full_name":"warriorBrian/node-knife4j","owner":"warriorBrian","description":"node knife4j","archived":false,"fork":false,"pushed_at":"2023-04-20T17:13:07.000Z","size":3581,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T12:14:27.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/warriorBrian.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":"2023-04-20T15:50:20.000Z","updated_at":"2024-07-11T07:51:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd31e451-d48b-492f-9744-d62ee14f49e5","html_url":"https://github.com/warriorBrian/node-knife4j","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/warriorBrian/node-knife4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warriorBrian%2Fnode-knife4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warriorBrian%2Fnode-knife4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warriorBrian%2Fnode-knife4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warriorBrian%2Fnode-knife4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warriorBrian","download_url":"https://codeload.github.com/warriorBrian/node-knife4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warriorBrian%2Fnode-knife4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30071896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-11T07:29:31.025Z","updated_at":"2026-03-04T05:02:19.536Z","avatar_url":"https://github.com/warriorBrian.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n\n```bash\nnpm install @nestjs/swagger node-knife4j swagger-ui-express express\n```\n\n```js\nimport { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'\nimport { knife4jSetup } from 'node-knife4j'\n\n\nasync function bootstrap(){\n  ...\n    \n  const options = new DocumentBuilder()\n    .setTitle('knife4j example')\n    .setDescription('API description')\n    .setVersion('1.0')\n    .addTag('knife4j')\n    .build()\n  const document = SwaggerModule.createDocument(app, options)\n  SwaggerModule.setup('docs', app, document)\n  knife4jSetup(app, [\n    {\n      name: '1.x版本',\n      url: `/docs-json`,\n      swaggerVersion: '1.0',\n      location: `/docs-json`,\n    },\n  ])\n  await app.listen(3000)\n  ...\n}\n```\n\n此版本采用`knife4j`最新版:`4.0.0`, 解决全局设置参数默认不携带问题等。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarriorbrian%2Fnode-knife4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarriorbrian%2Fnode-knife4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarriorbrian%2Fnode-knife4j/lists"}