Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@convergencelabs/typedoc-plugin-custom-modules
Advanced tools
Declare modules of all your exports using a @module annotation
By default, Typedoc (with the mode="modules"
option) will create a Module (née "External Module") for every file with any exported ES6 constructs. This can result in an unmanageable amount of globals, poor discoverability, and difficult navigation. This plugin enables the grouping of these modules by a particular name.
This plugin supports two additional comment tags:
@moduledefinition ModuleName
can be placed at the top of a file that best represents a "module" for your codebase. This will create a ModuleName
module in the top-level project hierarchy.@module ModuleName
can be added to the comment of any other valid exported Typescript declaration (e.g. a class, interface, function, enum etc). These declarations will be moved to any modules specified with @moduledefinition
. Any orphaned modules (e.g. a file that exports a @module
-tagged class and nothing else) are deleted.Additionally, all exported TS constructs not explicitly tagged with @module
are automatically unwrapped from the default "module" (which is just the file in which it is defined) and placed directly beneath the project. This should be identical to using Typedoc with mode="file"
.
See the test/multiple-ancestor-modules
directory for a typical use case for this plugin.
Inspired by the popular typedoc-plugin-external-module-name, but with a slightly different set of requirements. This plugin leverages some improved TypeDoc comment APIs to support spaces within module names.
See the companion theme for an optional, slightly customized version of the default theme with this plugin in mind.
@module
tags as well. Individual export @module
s would override any file @module
s@parent
tag or something@moduledefinition
isn't required for every potential @module
)FAQs
Declare modules of all your exports using a @module annotation
We found that @convergencelabs/typedoc-plugin-custom-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.