nova-frontend
Version:
Nova is an alternative to all those gigantic front-end frameworks, that often do more than is necessary when it comes to building simple UIs. Pure Vanilla Javascript is performance-wise the best way to build your front-end in a SPA, but it can be hard to
12 lines (9 loc) • 330 B
JavaScript
const jsdoc2md = require('jsdoc-to-markdown');
const fs = require('fs').promises;
async function generateDocs() {
const api = await jsdoc2md.render({ files: 'lib/*.js' });
let file = await fs.readFile('./template.md');
file = String(file).replace('{{{API}}}', api);
fs.writeFile('./README.md', file);
}
generateDocs();