A Swagger codegen for JavaScript. Latest version: 1.13.0, last published: 6 years ago. Start using swagger-js-codegen in your project by running `npm i swagger-js-codegen`. There are 25 other projects in the npm registry using swagger-js-codegen.
npm install swagger-js-codegenExamplevar fs = require('fs'); var CodeGen = require('swagger-js-codegen').CodeGen; var file = 'swagger/spec.json'; var swagger = JSON.parse(fs.readFileSync(file, 'UTF-8')); var nodejsSourceCode = CodeGen.getNodeCode({ className: 'Test', swagger: ...
Last commit message Last commit date Latest commit fmvilas Not maintained anymore Nov 17, 2020 a10c1e9·Nov 17, 2020 History 159 Commits lib templates tests .editorconfig .eslintignore .eslintrc .gitignore .npmignore LICENSE README.md
生成的代码功能: ES7 ESLint YAML配置文件 表示 禁止转码 安装 要从CLI使用它: npm install -g swagger-node-codegen 要将其用作项目中的模块: npm install --save swagger-node-codegen 要求 Node.js v7.6 + 用法 从命令行界面(CLI) Usage: snc [options] < swaggerFile> Options: -V, --version outpu...