1.0.1 • Published 3 years ago
dtx-lib-api-extractor v1.0.1
Usage
Swagger 기반으로 원하는 파일들의 Annotation을 긁어서 JSON 파일로 만들어줍니다.
const swaggerScraper = require('swagger-scraper-json');
const options = {
info: {
version: '1.0.0',
title: 'Albums store',
license: {
name: 'MIT',
},
},
baseDir: __dirname,
// Glob pattern to find your jsdoc files (multiple patterns can be added in an array)
filesPattern: './**/*.js',
apiDocsPath: `${__dirname}/docs`
}
swaggerScraper(options);