
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@borgar/jsdoc-tsmd
Advanced tools
A (limited) JSDoc template that prints Markdown and TypeScript declaration files
A JSDoc template for small projects that can emit Markdown docs or TypeScript types.
Not really recommended for use as it only implements the few parts of JSDoc that the author has use for. Likely the project will die as TS tooling gets better over time.
Set this up like any other JSDoc template. Start by installing the package:
npm i -D @borgar/jsdoc-tsmd
Then add a config file, which it might look something like this:
{
"source": {
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "((^|\\/|\\\\)_|spec\\.js$)"
},
"opts": {
"template": "node_modules/@borgar/jsdoc-tsmd",
"destination": "console",
}
}
Running jsdoc -c myconfig.json src
should then emit some Markdown docs (given that the sources have valid jsdoc comments in them). See the options below for how do produce TypeScript type declarations.
Generally, refer to JSDoc's documentation on how to configure it but these options have special meaning here:
destination
- Where to save the emitted text, using "console"
will log the output to the console.output
- Set this to "typescript"
to emit TypeScript type declarations rather than Markdown docs.validate
- When producing type declarations, the output will be run through TypeScript to validate it, if you like living on the edge, you can set this to false
to skip this step.FAQs
A (limited) JSDoc template that prints Markdown and TypeScript declaration files
The npm package @borgar/jsdoc-tsmd receives a total of 11 weekly downloads. As such, @borgar/jsdoc-tsmd popularity was classified as not popular.
We found that @borgar/jsdoc-tsmd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.