swagger-ts-gen
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

swagger-ts-gen

A generator for typescript from Swagger

Installation

npm install -D swagger-ts-gen

Usage

import { Generator } from "swagger-ts-gen";

const content = fs.readFileSync("path to swagger", "utf-8");
const generator = new CodeGenerator(JSON.parse(content), {
  dist: path.resolve(process.cwd(), "dist")
});
generator.generate();

Readme

Keywords

Package Sidebar

Install

npm i swagger-ts-gen

Weekly Downloads

1

Version

0.4.5

License

MIT

Unpacked Size

70.7 kB

Total Files

33

Last publish

Collaborators

  • sue71