Debian Codegraph @

wasm/browser/script/generate-readme.mjs

raw
1 import jsdoc2md from "jsdoc-to-markdown";
2 const title = `# @csound/browser`;
3 const npmShield = `[![npm (scoped with tag)](https://shields.shivering-isles.com/npm/v/@csound/browser/latest)](https://www.npmjs.com/package/@csound/browser)`;
4 const prettierShield = `[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)`;
5 const workflowShield = `[![GitHub Workflow Status](https://shields.shivering-isles.com/github/workflow/status/csound/csound/csound_wasm)](https://github.com/csound/csound/actions?query=workflow%3Acsound_wasm)`;
6 const apiDocTitle = `## Api Documentation\n\n`;
7 jsdoc2md
8 .render({ files: "src/**/*.js" })
9 .then((jsdocMarkdown) =>
10 console.log(
11 `${title}\n` +
12 `${npmShield}\n` +
13 `${workflowShield}\n` +
14 `${prettierShield}\n` +
15 `\n\n` +
16 `${apiDocTitle}${jsdocMarkdown}`,
17 ),
18 );