{"_id":"@a993576769/openapi-codegen","_rev":"4-0069ed35aec2c98c788b78427806f170","name":"@a993576769/openapi-codegen","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@a993576769/openapi-codegen","version":"0.1.0","description":"Library that generates Typescript clients based on the OpenAPI specification.","author":{"name":"993576769"},"homepage":"https://github.com/993576769/openapi-typescript-codegen","repository":{"type":"git","url":"git+https://github.com/993576769/openapi-typescript-codegen.git"},"bugs":{"url":"https://github.com/993576769/openapi-typescript-codegen/issues"},"license":"MIT","keywords":["openapi","swagger","codegen","generator","client","typescript","yaml","json","fetch","xhr","node"],"maintainers":[{"name":"a993576769","email":"993576769@qq.com"}],"main":"dist/index.js","module":"dist/index.js","types":"types/index.d.ts","bin":{"openapi":"bin/index.js"},"scripts":{"clean":"rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache","build":"rollup --config --environment NODE_ENV:development","build:watch":"rollup --config --environment NODE_ENV:development --watch","release":"rollup --config --environment NODE_ENV:production","run":"node ./test/index.js","test":"jest --selectProjects UNIT","test:update":"jest --selectProjects UNIT --updateSnapshot","test:watch":"jest --selectProjects UNIT --watch","test:coverage":"jest --selectProjects UNIT --coverage","test:e2e":"jest --selectProjects E2E --runInBand","eslint":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\"","eslint:fix":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --fix","prettier":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --check","prettier:fix":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --write","prepublish":"yarn run clean && yarn run release","codecov":"codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"},"dependencies":{"camelcase":"^6.2.0","commander":"^7.0.0","handlebars":"^4.7.6","js-yaml":"^4.0.0","json-schema-ref-parser":"^9.0.7","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@babel/cli":"7.13.16","@babel/core":"7.14.2","@babel/preset-env":"7.14.2","@babel/preset-typescript":"7.13.0","@rollup/plugin-commonjs":"19.0.0","@rollup/plugin-node-resolve":"13.0.0","@types/express":"4.17.11","@types/jest":"26.0.23","@types/js-yaml":"4.0.1","@types/node":"15.3.0","@types/node-fetch":"2.5.10","@types/qs":"6.9.6","@typescript-eslint/eslint-plugin":"4.23.0","@typescript-eslint/parser":"4.23.0","codecov":"3.8.2","eslint":"7.26.0","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"3.4.0","eslint-plugin-simple-import-sort":"7.0.0","express":"4.17.1","form-data":"4.0.0","glob":"7.1.7","jest":"26.6.3","jest-cli":"26.6.3","node-fetch":"2.6.1","prettier":"2.3.0","puppeteer":"9.1.1","qs":"6.10.1","rollup":"2.48.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","typescript":"4.2.4"},"gitHead":"db2506bf93e96fe5b27f0299fa90d29b6d70afb4","_id":"@a993576769/openapi-codegen@0.1.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IzNRY0ydfv4ZSebDNM35GNr7hc/1emxh7+sVLjN6/cC1RR4K5CIB8rGwHwdPgeQKJhRUEx+LrvXj66xFwFGUrg==","shasum":"b6f3511d7621e71a39f6e3294fb161344b594007","tarball":"https://registry.npmjs.org/@a993576769/openapi-codegen/-/openapi-codegen-0.1.0.tgz","fileCount":6,"unpackedSize":167875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgojExCRA9TVsSAnZWagAAPOYP+wVv3EIVCTV9cLQkHM2L\ngU6RfJ0xwJ2e7IplWAeDEmgN8GIhlOazoMv2YYtlLgrjFsQZntp+Sw1fSUmv\nNvccqDpTXjZwdFDwxjthwqzeJ1mFc4sJLNAtZ7rIsaxJ3Q39888Z7RZnl37M\nfNJ3huVvvm1zXVACUNNXy7OUv0AfTywyRfoHx76ZytGA1jVeIB7YgIjH1MOo\nPAKsntX3yYYvrJGl9tQeTEyr5aVYg19oV6W83oKh9zRcKIi0oxrTRQdUp3Un\nlYJIQnpOIJPUCwsTcA5aaljqByf2r7Cug7Dj/VWtCdc+I6jqh0RYqvJiqpLY\ndlVV0SBV/xPQCmQbsjJWDebo+FZRZd9Lt2IMTNB0UoEtA0LMjW35OjbSoxdu\n6h9ZoHd50/LFKanPslUp18dPPk3y/FHa8PK7b/Pfj66DMdV72+3lctg+BHYC\nQ3vxNfSAgh9PyJheN6XccCJB9A4skPVnQFVFWo540UYdHwo3rq9Dcu6D/eFA\nCkYqMBUZRBBHeK6QgX5fVTjLl8t7eNE1bTIneU7LX/DVURcdUFc9I0CcHQHb\nvKFcPlN+wQBRgVgsyUUrPHGPia0Y1x/ShY7jFICmoAN9LXrXkRRM5kFJ42/Y\nD6wze8fyKxsrVu07tmO/rJk61xb3CcUJOy7Jt3YiXdU2mdrgZhisFo5++3+T\nPw+w\r\n=t9FU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD31nFxqWNEAtmylN9sZXdTC1UOUF8XIknQZCnY0cwzGgIhAJe4XPgDxtUxTVdKbXeQgg3YhHby+mFlL3c2N1ICcpgl"}]},"_npmUser":{"name":"a993576769","email":"993576769@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-codegen_0.1.0_1621242161155_0.6289488548641708"},"_hasShrinkwrap":false},"0.1.1":{"name":"@a993576769/openapi-codegen","version":"0.1.1","description":"Library that generates Typescript clients based on the OpenAPI specification.","author":{"name":"993576769"},"homepage":"https://github.com/993576769/openapi-typescript-codegen","repository":{"type":"git","url":"git+https://github.com/993576769/openapi-typescript-codegen.git"},"bugs":{"url":"https://github.com/993576769/openapi-typescript-codegen/issues"},"license":"MIT","keywords":["openapi","swagger","codegen","generator","client","typescript","yaml","json","fetch","xhr","node"],"maintainers":[{"name":"a993576769","email":"993576769@qq.com"}],"main":"dist/index.js","module":"dist/index.js","types":"types/index.d.ts","bin":{"openapi":"bin/index.js"},"scripts":{"clean":"rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache","build":"rollup --config --environment NODE_ENV:development","build:watch":"rollup --config --environment NODE_ENV:development --watch","release":"rollup --config --environment NODE_ENV:production","run":"node ./test/index.js","test":"jest --selectProjects UNIT","test:update":"jest --selectProjects UNIT --updateSnapshot","test:watch":"jest --selectProjects UNIT --watch","test:coverage":"jest --selectProjects UNIT --coverage","test:e2e":"jest --selectProjects E2E --runInBand","eslint":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\"","eslint:fix":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --fix","prettier":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --check","prettier:fix":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --write","prepublish":"yarn run clean && yarn run release","codecov":"codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"},"dependencies":{"camelcase":"^6.2.0","commander":"^7.0.0","handlebars":"^4.7.6","js-yaml":"^4.0.0","json-schema-ref-parser":"^9.0.7","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@babel/cli":"7.13.16","@babel/core":"7.14.2","@babel/preset-env":"7.14.2","@babel/preset-typescript":"7.13.0","@rollup/plugin-commonjs":"19.0.0","@rollup/plugin-node-resolve":"13.0.0","@types/express":"4.17.11","@types/jest":"26.0.23","@types/js-yaml":"4.0.1","@types/node":"15.3.0","@types/node-fetch":"2.5.10","@types/qs":"6.9.6","@typescript-eslint/eslint-plugin":"4.23.0","@typescript-eslint/parser":"4.23.0","codecov":"3.8.2","eslint":"7.26.0","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"3.4.0","eslint-plugin-simple-import-sort":"7.0.0","express":"4.17.1","form-data":"4.0.0","glob":"7.1.7","jest":"26.6.3","jest-cli":"26.6.3","node-fetch":"2.6.1","prettier":"2.3.0","puppeteer":"9.1.1","qs":"6.10.1","rollup":"2.48.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","typescript":"4.2.4"},"gitHead":"c5c2f48c4e128edda42e6dbc0c4fec37539dd377","_id":"@a993576769/openapi-codegen@0.1.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iW5MBYFsKHNNScmXRZRjAI2PCHUo3l38XHtL2k7Fr8Zxc8JoPKQDMQ842rG2fcnlRTO0HXuOm+o7nLBTpwkkNw==","shasum":"1563c2e9944433c50d22dbfb4baf9fa05de24059","tarball":"https://registry.npmjs.org/@a993576769/openapi-codegen/-/openapi-codegen-0.1.1.tgz","fileCount":6,"unpackedSize":153679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgojg9CRA9TVsSAnZWagAAGK4P/2sxIdnJAk7HdGftOjX4\ntan8/CSeEk6X3wmnHihHyZcQR8m5xHF1thEblB7Ru3lbmwmPkg5VmxkTgMJP\n2RvVa0b2vJHPqeD2pAvncdR7iXM9RM8UHv989Cirk5w5UzJfkl/Qm1bR6Iux\nN57Dlg1CGsSZyZMVqU+R86P7sjclJWF6b7x0FeSYJZyGcRLbLyFeLxG+nNFF\nTrIArQcsm7Eq4YV3rRDGnfrtcNf3F7VNKZ8z/frYKparO7A9NRZTfw1tud4I\n8l/NbnNCnp4pFu07p6eA/MkvunOARq8qSPTVoRgPd6e1lgBHwZjRpAx+SWR6\nHmSwqFDCuQDFiaWFDx3u018tDn+kLZL9Zod0c2LRG42DtJNIRhYnq7LE3zkB\nOxV+PO29MEPpAkMaW2OajpUUyZh2Fc159MWLQwwQLkt/dUS0gx3uMlgX0kMF\nsB1OxV4iYtdAAEIFKQrdCSYFrWMUG0Mfa3rA9B8+qAT50mbnGRkMdp6/MT7d\n+8Ebpc1B3n5/PTSuxIbWjffE/bLuvNxSCnKHKKYrPwDGSewUjt1xNLxClKfe\nmi/H3IH2WnSVuY3sHPCb+nJnQGs4Z+bJ+FisKRHrkWMElwSaMgDKk00jvcU9\nx35pemuDkqq7r1VWM+eypw3Cqtg1WgkXPV29PB30RcNQX+E6DKeCt2Ne+geg\nyYIL\r\n=+86C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBiu2thhfW5LeOtRSwa69Oxa/Oew282tMpd9kvRUAvvAiEA0otZVzghpaEo97ZX6ma+DoS5c/T98310DLezvAc8oKg="}]},"_npmUser":{"name":"a993576769","email":"993576769@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-codegen_0.1.1_1621243965152_0.9733863643573015"},"_hasShrinkwrap":false},"0.1.2":{"name":"@a993576769/openapi-codegen","version":"0.1.2","description":"Library that generates Typescript clients based on the OpenAPI specification.","author":{"name":"993576769"},"homepage":"https://github.com/993576769/openapi-typescript-codegen","repository":{"type":"git","url":"git+https://github.com/993576769/openapi-typescript-codegen.git"},"bugs":{"url":"https://github.com/993576769/openapi-typescript-codegen/issues"},"license":"MIT","keywords":["openapi","swagger","codegen","generator","client","typescript","yaml","json","fetch","xhr","node"],"maintainers":[{"name":"a993576769","email":"993576769@qq.com"}],"main":"dist/index.js","module":"dist/index.js","types":"types/index.d.ts","bin":{"openapi":"bin/index.js"},"scripts":{"clean":"rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache","build":"rollup --config --environment NODE_ENV:development","build:watch":"rollup --config --environment NODE_ENV:development --watch","release":"rollup --config --environment NODE_ENV:production","run":"node ./test/index.js","test":"jest --selectProjects UNIT","test:update":"jest --selectProjects UNIT --updateSnapshot","test:watch":"jest --selectProjects UNIT --watch","test:coverage":"jest --selectProjects UNIT --coverage","test:e2e":"jest --selectProjects E2E --runInBand","eslint":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\"","eslint:fix":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --fix","prettier":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --check","prettier:fix":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --write","prepublish":"yarn run clean && yarn run release","codecov":"codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"},"dependencies":{"camelcase":"^6.2.0","commander":"^7.0.0","handlebars":"^4.7.6","js-yaml":"^4.0.0","json-schema-ref-parser":"^9.0.7","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@babel/cli":"7.13.16","@babel/core":"7.14.2","@babel/preset-env":"7.14.2","@babel/preset-typescript":"7.13.0","@rollup/plugin-commonjs":"19.0.0","@rollup/plugin-node-resolve":"13.0.0","@types/express":"4.17.11","@types/jest":"26.0.23","@types/js-yaml":"4.0.1","@types/node":"15.3.0","@types/node-fetch":"2.5.10","@types/qs":"6.9.6","@typescript-eslint/eslint-plugin":"4.23.0","@typescript-eslint/parser":"4.23.0","codecov":"3.8.2","eslint":"7.26.0","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"3.4.0","eslint-plugin-simple-import-sort":"7.0.0","express":"4.17.1","form-data":"4.0.0","glob":"7.1.7","jest":"26.6.3","jest-cli":"26.6.3","node-fetch":"2.6.1","prettier":"2.3.0","puppeteer":"9.1.1","qs":"6.10.1","rollup":"2.48.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","typescript":"4.2.4"},"gitHead":"e08e23aa1a276b407a3621dba7e3485ec7c0d72f","_id":"@a993576769/openapi-codegen@0.1.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rrPwNMpQN1WpEtXAwX+iW+HLLrW9ea1HDICgJOceYjnvEwDYy41RDz+7eeasJ77W/AsaBucAZtqHnAbcdCSsnQ==","shasum":"bb9bc27744c3fef8f6cf63a17ac184bac93d3839","tarball":"https://registry.npmjs.org/@a993576769/openapi-codegen/-/openapi-codegen-0.1.2.tgz","fileCount":6,"unpackedSize":153675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgojiyCRA9TVsSAnZWagAAUqMQAIF/O8KEzTOUP0sOs7lS\nqgFxOR3rthNrhIKyZm1Qma0gDS5SyxfVGsJetbzzDdWkLGvyMuYBEcyHXtx2\nocx0Zfa8DeO8F867BAX63kjnF06kL2a4YZg5NunqF8FjC7Len4pOfp9dxlHB\n7AjXQt10KrGvWAZfLPLbYYXuPHp1jQT13Ottq3oKV44S5YFn2N3pcM6IwvDp\nMSgZ57uw2Vx/WC5428BTSpgXHEEQ9SVCteu9eWvV/3AHdJLKIORS9rlhFYzW\n+Gl/etp0v9dDOs/9C4WPpElge9RbotzqI4Ft2cj6gmBvvi8xcI87e3v06DKJ\noSaN0XRDe5Srb+IC/g7C5UfzVgIy2o2bf/N10LHEiXpwjyLamRECyXNSIYec\n4LCC3xJNMZxCxGbavAO25K/7i6scEH3u0h0ES9dgb5b5rDd1giGK3XytNgXM\nPmtURpwuLpRAyybAGgJyKDTSQfR/9JSK9CIOY77sAoztn7jAwHWYi+DA6UeP\nX34rdXEKOg9GV1MXpKzkhbyqtqGRheGScUUTIQHZkSrTSesyky7JSJaKdnQ6\nxKCmnu/70N0eoMCv4Rg3n84957aiKk+/8QkwX4XMmBuCvV7YKyHYxUy0pl6G\nZhEvgLJmjSY7Se1Hf7ulI5Lbgh2T0DAydgbmQACIQJ1RJZUsFEIOSK60+aeI\nKMou\r\n=vOMJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt1YmYEfLn9RusP28LhmfArcrCtB0f/pV26Fh5gCZPkQIhAKH2nh9/NSso1EmTvAavj3QeePBLJkPSd0dvMUlV44lp"}]},"_npmUser":{"name":"a993576769","email":"993576769@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-codegen_0.1.2_1621244082293_0.16736719512525267"},"_hasShrinkwrap":false},"0.1.3":{"name":"@a993576769/openapi-codegen","version":"0.1.3","description":"Library that generates Typescript clients based on the OpenAPI specification.","author":{"name":"993576769"},"homepage":"https://github.com/993576769/openapi-typescript-codegen","repository":{"type":"git","url":"git+https://github.com/993576769/openapi-typescript-codegen.git"},"bugs":{"url":"https://github.com/993576769/openapi-typescript-codegen/issues"},"license":"MIT","keywords":["openapi","swagger","codegen","generator","client","typescript","yaml","json","fetch","xhr","node"],"maintainers":[{"name":"a993576769","email":"993576769@qq.com"}],"main":"dist/index.js","module":"dist/index.js","types":"types/index.d.ts","bin":{"openapi":"bin/index.js"},"scripts":{"clean":"rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache","build":"rollup --config --environment NODE_ENV:development","build:watch":"rollup --config --environment NODE_ENV:development --watch","release":"rollup --config --environment NODE_ENV:production","run":"node ./test/index.js","test":"jest --selectProjects UNIT","test:update":"jest --selectProjects UNIT --updateSnapshot","test:watch":"jest --selectProjects UNIT --watch","test:coverage":"jest --selectProjects UNIT --coverage","test:e2e":"jest --selectProjects E2E --runInBand","eslint":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\"","eslint:fix":"eslint \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --fix","prettier":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --check","prettier:fix":"prettier \"./src/**/*.ts\" \"./bin/index.js\" \"./types/index.d.ts\" --write","prepublish":"yarn run clean && yarn run release","codecov":"codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"},"dependencies":{"camelcase":"^6.2.0","commander":"^7.0.0","handlebars":"^4.7.6","js-yaml":"^4.0.0","json-schema-ref-parser":"^9.0.7","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@babel/cli":"7.13.16","@babel/core":"7.14.2","@babel/preset-env":"7.14.2","@babel/preset-typescript":"7.13.0","@rollup/plugin-commonjs":"19.0.0","@rollup/plugin-node-resolve":"13.0.0","@types/express":"4.17.11","@types/jest":"26.0.23","@types/js-yaml":"4.0.1","@types/node":"15.3.0","@types/node-fetch":"2.5.10","@types/qs":"6.9.6","@typescript-eslint/eslint-plugin":"4.23.0","@typescript-eslint/parser":"4.23.0","codecov":"3.8.2","eslint":"7.26.0","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"3.4.0","eslint-plugin-simple-import-sort":"7.0.0","express":"4.17.1","form-data":"4.0.0","glob":"7.1.7","jest":"26.6.3","jest-cli":"26.6.3","node-fetch":"2.6.1","prettier":"2.3.0","puppeteer":"9.1.1","qs":"6.10.1","rollup":"2.48.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","typescript":"4.2.4"},"gitHead":"aa97421cead7db6c5e9a575857a82b12f3b78ee4","_id":"@a993576769/openapi-codegen@0.1.3","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wQUhFmbiHi2s5up2qkPhOEMpCOOzMXkdQQFPIiVcA17/mycTaOdgQfolCojOncKh0RQ9sTLDX06mTapSL6NHHQ==","shasum":"abee00ac00e77226092acbc72d97340b27686319","tarball":"https://registry.npmjs.org/@a993576769/openapi-codegen/-/openapi-codegen-0.1.3.tgz","fileCount":6,"unpackedSize":153691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoxYcCRA9TVsSAnZWagAAENoQAJtiP708dY4W5mBJiRT9\n/wMYJMHdanbTZ/CBUTiuTX8diSCXyeS/daMhJ4A49g7KeXOOOVNzEWX2SYLW\n5KlC4gXBYudQ0I2eD51TPyBW5sY9H16D1s2Qb9CUSldUg4+8s1/UsI9HNZdf\nnj3fGVcGqGwnAkWrfTSxEL2ieouleBCccxG8Pyi0dSDIiuO0deH7XqjEPaO3\noRuzI66NMhCcExYP+aV2J8Lrhu+dgaBCt2QKjK5p1jZe/Bs5peWLPe6rtx8k\niU6xYXd8iWQb6YFEs8RO0gBdPQi25AmdBvJ53AcEkO8sQzA2LdRwKrRGhjur\noMMpSiUXm8psQdxUhr3k1rganiMnWNXMCKW7LMwywOrEy2IxbFXyZDqPfGFm\nC3ewh94b6PRzUOjFxXhQo6/VZfGH5wwca9qMtjG/LpUi3RWx1TStdQGvVbtx\n13QqRujmslrmlX+6rarDy8DIL1wFqv8lqFoe2kkWHWMUWKwm/M3AsnOblyjD\naKEIZ5MkB404Xt7xFDC7amrrR3KUuBTWfNRKFiuPNIGnH208styexKJHWqxZ\n2dS+8Yx7lSgOPJ8fFnRvO5M9BFPXsk5zLHP2iskzxPR9vqQI/fQMuRX/sVYT\n4+zTYRMQPslcakq98oS2yDWOlr0sSzV774BGf83v18v2DSogKfjt/ssfN9xQ\netn1\r\n=GYpr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3rRR3Kvh6AsGh2mrub89f6piOk558BQ21YBMT6KnuLAiEA8tsMADjQ16AKBsZ2+2ieYMqj9ztD2qKJBIUSJgKsMVY="}]},"_npmUser":{"name":"a993576769","email":"993576769@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-codegen_0.1.3_1621300763436_0.14804203887789402"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-17T09:02:41.088Z","0.1.0":"2021-05-17T09:02:41.411Z","modified":"2022-04-04T10:54:21.470Z","0.1.1":"2021-05-17T09:32:45.318Z","0.1.2":"2021-05-17T09:34:42.463Z","0.1.3":"2021-05-18T01:19:23.668Z"},"maintainers":[{"name":"a993576769","email":"993576769@qq.com"}],"description":"Library that generates Typescript clients based on the OpenAPI specification.","homepage":"https://github.com/993576769/openapi-typescript-codegen","keywords":["openapi","swagger","codegen","generator","client","typescript","yaml","json","fetch","xhr","node"],"repository":{"type":"git","url":"git+https://github.com/993576769/openapi-typescript-codegen.git"},"author":{"name":"993576769"},"bugs":{"url":"https://github.com/993576769/openapi-typescript-codegen/issues"},"license":"MIT","readme":"# OpenAPI Typescript Codegen\r\n\r\n> 可自定义token字段名的[openapi-typescript-codegen](https://github.com/ferdikoomen/openapi-typescript-codegen)\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @a993576769/openapi-codegen --save-dev\r\nor\r\nyarn add @a993576769/openapi-codegen --dev\r\n```\r\n\r\n\r\n## Usage\r\n\r\n```\r\n$ openapi --help\r\n\r\n  Usage: openapi [options]\r\n\r\n  Options:\r\n    -V, --version             output the version number\r\n    -i, --input <value>       OpenAPI specification, can be a path, url or string content (required)\r\n    -o, --output <value>      Output directory (required)\r\n    -c, --client <value>      HTTP client to generate [fetch, xhr, node] (default: \"fetch\")\r\n    --useOptions              Use options instead of arguments\r\n    --useUnionTypes           Use union types instead of enums\r\n    --exportCore <value>      Write core files to disk (default: true)\r\n    --exportServices <value>  Write services to disk (default: true)\r\n    --exportModels <value>    Write models to disk (default: true)\r\n    --exportSchemas <value>   Write schemas to disk (default: false)\r\n\r\n  Examples\r\n    $ openapi --input ./spec.json\r\n    $ openapi --input ./spec.json --output ./dist\r\n    $ openapi --input ./spec.json --output ./dist --client xhr\r\n```\r\n\r\n\r\n## Example\r\n\r\n### **package.json**\r\n\r\n```json\r\n{\r\n    \"scripts\": {\r\n        \"generate\": \"openapi --input ./spec.json --output ./dist\"\r\n    }\r\n}\r\n```\r\n\r\n### Authorization\r\n\r\nThe OpenAPI generator supports Bearer Token authorization. In order to enable the sending\r\nof tokens in each request you can set the token using the global OpenAPI configuration:\r\n\r\n```typescript\r\nimport { OpenAPI } from './generated';\r\n\r\nOpenAPI.TOKENFIELD = 'token-field';\r\nOpenAPI.TOKEN = 'some-bearer-token';\r\n```\r\n\r\nAlternatively, we also support an async method that provides the token for each request.\r\nYou can simply assign this method to the same `TOKEN `property in the global OpenAPI object.\r\n\r\n```typescript\r\nimport { OpenAPI } from './generated';\r\n\r\nconst getToken = async () => {\r\n    // Some code that requests a token...\r\n    return 'SOME_TOKEN';\r\n}\r\n\r\nOpenAPI.TOKEN = getToken;\r\n```\r\n","readmeFilename":"README.md"}