0.2.0 • Published 5 months ago

micro-docgen v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

micro-docgen

Simple documentation generator for TypeScript projects.

⚠️ WIP!! Currently only supports class serialization

Example

const { Docgen } = require('micro-docgen');
const docgen = new Docgen();
const fs = require('fs');

// add source file(s)
docgen.addFiles('./src/*.ts');

// Generate json
const documentation = docgen.generate();

// write the output to docs.json
fs.writeFileSync('./docs.json', JSON.stringify(documentation, null, '\t'));