
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@ebarooni/capacitor-docgen
Advanced tools
Docs Readme Markdown and JSON Generator for Capacitor Plugins
[!IMPORTANT]
💡 This is a fork of @capacitor/docgen. It will be maintained only until the upstream repository supports interface extensions and type intersections. See changes for details.
Docs Readme Markdown and JSON Generator for Capacitor Plugins.
npm i @capacitor/docgen --save-dev
@capacitor/docgen does not support type intersections or interface extensions. This fork addresses that limitation by ensuring that inherited properties and methods are included in the generated documentation.
# My Capacitor Plugin 🔌
The readme file can be formatted however you'd like. Just insert
the docgen placeholder elements where the index of the API methods,
and the API docs should go.
Below is an index of all the methods available.
<docgen-index></docgen-index>
## Custom Readme Content
Manage your readme content however, and on every `docgen` rebuild
it will leave the original content as is, but update the inner text
of the docgen placeholder elements with the updated generated docs.
<docgen-api></docgen-api>
## Commit Your Readme 🚀
The benefit of this readme file is that is also acts as the landing
page for the Github repo and NPM package, and the anchors within the
docs can also be linked to and shared.
The easiest way to run docgen
is to install @capacitor/docgen
as a dev dependency
and add the command to the package.json
scripts. In the example below,
HapticsPlugin
is the primary interface:
docgen --api HapticsPlugin --output-readme README.md
Flag | Alias | Description |
---|---|---|
--api | -a | The name of the primary application programming interface. Required |
--output-readme | -r | Path to the markdown file to update. Note that the file must already exist. Required |
--output-json | -j | Path to write the raw docs data as a json file. |
--project | -p | Path to the project's tsconfig.json file, same as the project flag for TypeScript's CLI. By default it'll attempt to find this file. |
{
"scripts": {
"docgen": "docgen --api HapticsPlugin --output-readme README.md"
}
}
The same API that's available to the CLI can also be imported from @capacitor/docgen
.
See original LICENSE.
FAQs
Docs Readme Markdown and JSON Generator for Capacitor Plugins
The npm package @ebarooni/capacitor-docgen receives a total of 2 weekly downloads. As such, @ebarooni/capacitor-docgen popularity was classified as not popular.
We found that @ebarooni/capacitor-docgen demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.