
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
typedoc-plugin-merge-modules
Advanced tools
This is a plugin for TypeDoc that merges the content of modules.
Use cases:
Here is an example of how the navigation menu of TypeDoc's output changes when merging all modules into the project root using the plugin:

This module can be installed using npm:
$ npm install typedoc-plugin-merge-modules --save-dev
The plugin requires TypeDoc version 0.24.x or 0.25.x to be installed. After installation you need to activate the plugin with a typedoc command line argument or inside your typedoc config file.
Here is an example using a JavaScript config file:
/** @type { import('typedoc').TypeDocOptionMap & import('typedoc-plugin-merge-modules').Config } */
module.exports = {
out: "output",
entryPointStrategy: "expand",
entryPoints: ["input/module1.ts", "input/module2.ts"],
tsconfig: "tsconfig.json",
readme: "MAIN.md",
plugin: ["typedoc-plugin-merge-modules"],
mergeModulesRenameDefaults: true, // NEW option of TypeDoc added by this plugin
mergeModulesMergeMode: "project", // NEW option of TypeDoc added by this plugin
};
After installation TypeDoc can be used normally and you can configure this plugin as described below.
The following options are added to TypeDoc when the plugin is installed:
| Name & Format | Description | Default |
|---|---|---|
mergeModulesRenameDefaults <boolean> | Defines if the plugin should rename default exports to their original name. | true |
mergeModulesMergeMode <"project"|"module"|"module-category"|"off"> | Defines how the plugin should merge modules:
| "project" |
When you set mergeModulesMergeMode to "module" OR "module-category" in combination with module comments you should add the tag @mergeTarget to the comment of the module whose comment should be used in the merge result.
Please report bugs here. Thanks for your contribution!
Special thanks go to the following people that contributed to this project:
If you find this piece of software helpful, please consider a donation. Any amount is greatly appreciated.
FAQs
Plugin for TypeDoc that merges the content of modules.
The npm package typedoc-plugin-merge-modules receives a total of 42,445 weekly downloads. As such, typedoc-plugin-merge-modules popularity was classified as popular.
We found that typedoc-plugin-merge-modules 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.