openapi-nitro
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

openapi-nitro

Generate a unjs/nitro routes dirs from an OpenAPI spec

How to Use

$ pnpm dlx openapi-nitro ./openapi.yaml -o ./routes
$ tree routes/
routes/
└── pets
    ├── [petId]
    │   ├── index.delete.ts
    │   ├── index.get.ts
    │   └── toys
    │       └── index.get.ts
    ├── index.get.ts
    └── index.post.ts

Comman line Options

$ pnpm dlx openapi-nitro --help
Generator nitro routes from OpenAPI (openapi-nitro v0.0.1)                                                                                                                                                             7:25:17

USAGE openapi-nitro [OPTIONS] [INPUT]

ARGUMENTS

  INPUT="./openapi.yaml"    Input OpenAPI file path    

OPTIONS

  -o, --output="./routes"    Output dir path

Used Packages

Inspired Packages

License

MIT License ©Memory Lovers, LLC

Package Sidebar

Install

npm i openapi-nitro

Weekly Downloads

6

Version

0.0.4

License

MIT

Unpacked Size

12.3 kB

Total Files

13

Last publish

Collaborators

  • memorylovers