typescript-to-swagger
v0.1.37
Published
nvm use 14.20.0 npm uninstall --save-dev node-sass yarn add node-sass node-sass": "^4.14.0",
Downloads
425
Readme
Generate swagger file automaticaly from typescript for express node.js.
No need any js-doc comments for swagger documentation! Only typescript interfaces!
Very simple usage
generateSpecAsync({ dir: ['./src/controller', './src/enum', './src/model'] }).then((spec) => {
fs.writeFileSync(path.resolve('../spec.json'), JSON.stringify(spec));
});