{"name":"yapi-to-typescript","version":"4.0.0","keywords":["yapi","codegen","typescript"],"author":{"url":"https://github.com/fjc0k","name":"Jay Fong","email":"fjc0kb@gmail.com"},"license":"MIT","_id":"yapi-to-typescript@4.0.0","maintainers":[{"name":"funch","email":"fjc0kb@gmail.com"}],"homepage":"https://github.com/fjc0k/yapi-to-typescript","bugs":{"url":"https://github.com/fjc0k/yapi-to-typescript/issues"},"bin":{"ytt":"lib/cli.mjs"},"dist":{"shasum":"4063e197bedeee5e8ec1aacb9cf48d2c7496769a","tarball":"http://registry-npm.ywwl.com/yapi-to-typescript/download/yapi-to-typescript-4.0.0.tgz","fileCount":21,"integrity":"sha512-sRp65x6N+Y/9BHsfJ5sSOOErNLSTmiUJhq8qFgoe98T8buox+E4IXVXKPCfl0pFEtPocvA2xQDZn7AaDHNgTAg==","signatures":[{"sig":"MEYCIQDYtWDq7VcfFwlmNtFQ0BNgjSRr6vcTDxvI9PR8d5oVgwIhAKtRE2e8xADBwZu7RDuYAB7EbeNIyBROl8ZmbXLa8Uxx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCuhQEuM8TNtchp6pDfzslZH10yPr5CN8J3A6yjhr2prwIgK4hUNkSXkOfyPy8EzAW5dxc2o4qqrqZ+4Z7Ryy+446k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94977,"size":25918,"noattachment":false,"key":"/yapi-to-typescript/-/yapi-to-typescript-4.0.0.tgz"},"type":"module","engines":{"node":">=24.21.0"},"exports":{".":"./lib/index.mjs","./cli":"./lib/cli.mjs","./package.json":"./package.json"},"gitHead":"0251ae13c76f2bfe2bfd314f77c810827627c9ec","scripts":{"docs":"pnpm run docs:build && gh-pages --dist docs/dist --dest handbook","lint":"biome check .","test":"vitest run --coverage","build":"tsdown","format":"biome format --write .","prepare":"dumi setup","release":"pnpm run test:run && standard-version -a && pnpm run build && pnpm run docs && git push --follow-tags origin master && npm login && npm publish","docs:dev":"dumi dev","lint:fix":"biome check --write .","test:api":"tsx src/cli.ts","test:run":"vitest run","typecheck":"tsc --noEmit","docs:build":"dumi build","test:watch":"vitest","test:update":"vitest run -u","release:beta":"pnpm run test:run && standard-version -a --release-as patch --prerelease beta && pnpm run build && git push --follow-tags origin master && npm login && npm publish --tag next","release:major":"pnpm run test:run && standard-version -a --release-as major && pnpm run build && git push --follow-tags origin master && npm login && npm publish","release:major:beta":"pnpm run test:run && standard-version -a --release-as major --prerelease beta && pnpm run build && git push --follow-tags origin master && npm login && npm publish --tag next"},"_npmUser":{"name":"funch","email":"fjc0kb@gmail.com"},"repository":{"url":"git+ssh://git@github.com/fjc0k/yapi-to-typescript.git","type":"git"},"_npmVersion":"11.19.0","description":"根据 YApi 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"ora":"^10.0.0","jiti":"^2.7.0","dayjs":"^1.11.23","json5":"^2.2.3","vtils":"^4.138.0","yargs":"^18.2.0","consola":"^3.4.2","prompts":"^2.4.2","fs-extra":"^11.4.1","get-port":"^7.2.0","prettier":"^3.10.1","form-data":"^4.0.6","node-fetch":"^3.3.2","typescript":"^6.0.3","change-case":"^5.4.4","proxy-agent":"^8.0.2","signal-exit":"^4.1.0","openapi-types":"^12.1.3","swagger-client":"3.18.4","to-json-schema":"^0.2.5","@types/json-schema":"^7.0.15","json-schema-to-typescript":"^16.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.21.0","devDependencies":{"tsx":"^4.23.15","dumi":"^2.4.57","tempy":"^3.2.0","tsdown":"^0.23.7","vitest":"^5.1.0","codecov":"^3.8.3","gh-pages":"^6.3.0","@types/node":"^24.19.2","@types/json5":"^2.2.0","@types/react":"^16.9.2","@types/yargs":"^17.0.35","@biomejs/biome":"^2.6.8","@types/prompts":"^2.4.9","@types/fs-extra":"^11.0.4","notify-dingtalk":"^1.2.0","standard-version":"^9.5.0","@vitest/coverage-v8":"^5.1.0","@types/to-json-schema":"^0.2.4"},"_npmOperationalInternal":{"tmp":"tmp/yapi-to-typescript_4.0.0_1794806772482_0.664636488697753","host":"s3://npm-registry-packages-npm-production"},"readme":"# YApi to TypeScript ![Test](https://github.com/fjc0k/yapi-to-typescript/workflows/Test/badge.svg) [![codecov](https://codecov.io/gh/fjc0k/yapi-to-typescript/branch/master/graph/badge.svg)](https://codecov.io/gh/fjc0k/yapi-to-typescript)\n\n`YApi to TypeScript`（简称 `ytt`） 是一个代码生成工具，其可根据 [YApi](https://github.com/YMFE/yapi) 或 [Swagger](https://swagger.io/) 的接口定义生成 TypeScript 或 JavaScript 的接口类型及其请求函数代码。\n\n## 文档\n\n- [介绍](https://fjc0k.github.io/yapi-to-typescript/v4/)\n- [配置](https://fjc0k.github.io/yapi-to-typescript/v4/config)\n- [使用](https://fjc0k.github.io/yapi-to-typescript/v4/usage)\n- [统一请求函数](https://fjc0k.github.io/yapi-to-typescript/v4/request)\n- [更新日志](https://fjc0k.github.io/yapi-to-typescript/v4/changelog)\n\n## 交流群\n\n钉钉扫码加入交流群：\n\n<img src=\"https://cdn.jsdelivr.net/gh/fjc0k/yapi-to-typescript@master/assets/dd.jpg\" width=\"300\" />\n\n## 许可\n\n[MIT](https://github.com/fjc0k/yapi-to-typescript/blob/master/LICENSE) © [Jay Fong](https://github.com/fjc0k)\n","publish_time":1794806772567,"_cnpm_publish_time":1794806772567,"dist-tags":{"latest":"4.1.0","next":"3.26.1-beta.1"}}