@saber2pr/nest-swagger-md
v0.0.27
Published
create nestjs api markdown docs.
Downloads
71
Readme
@saber2pr/nest-swagger-md
create nestjs api markdown docs.
yarn add @saber2pr/nest-swagger-md
Usage
import createApiMarkdownDocs from '@saber2pr/nest-swagger-md'
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule, {});
const options = new DocumentBuilder()
const document = SwaggerModule.createDocument(app, options);
// create ./api.md
await createApiMarkdownDocs(document);
await app.listen(3000);
}