@asyncapi/markdown-template

中文文档
2.0.0发布于 2025/12/17Apache-2.0构建来源已验证近 30 天下载 1.4万

Markdown template for the AsyncAPI generator.

原始使用文档
文档目录4 节
  1. Usage
  2. Supported parameters
  3. Development
  4. Contributors ✨

Markdown template for the AsyncAPI Generator

All Contributors

Usage

Install AsyncAPI CLI

npm install -g @asyncapi/cli

Generate using CLI

asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/[email protected]

You can replace <asyncapi.yaml> with local path or URL pointing to any AsyncAPI document. Look into Releases of this template to pick up the version you need. It is not recommended to always use the latest in production. Always use a specific version.

Supported parameters

NameDescriptionRequiredDefaultAllowed valuesExample
frontMatterThe name of a JSON or YAML formatted file containing values to provide the YAML frontmatter for static-site or documentation generators, just like this one. The file may contain {{title}} and {{version}} tags. They are replaced with information for the AsyncAPI document that is under info.title and info.version. You can overwrite the version with version parameter. Here you can see an example that uses tags in frontmatter compatible with slateNoNoneAny JSON or YAML formatted fileslate.yaml
outFilenameThe filename of the output file.Noasyncapi.mdAny with .md extensionindex.md
tocInclude a Table-of-Contents in the output markdown.Notruebooleanfalse
versionOverride the version of your application provided under info.version location in the specification file.NoVersion is taken from the specification file.Version is taken from the spec file.1.0.0

Development

The best and most reliable way of developing template is by using Generator's build in CLI. Clone Generator and follow official development guide.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Fran Méndez
Fran Méndez

💻 📖 👀 🤔 🚧 🐛 ⚠️
Lukasz Gornicki
Lukasz Gornicki

💻 📖 👀 🚇 🚧 🐛 ⚠️
Ilya Buzlov
Ilya Buzlov

💻 🐛
Julian Rabe
Julian Rabe

💻
Maciej Urbańczyk
Maciej Urbańczyk

📖 💻 🚧 🐛 👀 ⚠️
Ludovic Dussart
Ludovic Dussart

💻
Mike Ralphson
Mike Ralphson

💻
stuartforrest-infinity
stuartforrest-infinity

🐛 💻
Dale Lane
Dale Lane

💻 🤔
Michael Gerischer
Michael Gerischer

💻 🐛 ⚠️
Arya Gupta
Arya Gupta

📖
Kirill Efimov
Kirill Efimov

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

版本与发布记录

@asyncapi/markdown-template 共发布 81 个版本,首次发布于 2020/02/14;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.0.0latest2025/12/1710 个月前
1.6.92025/11/2411 个月前
1.6.82025/11/2411 个月前
1.6.72025/02/131.7 年前
1.6.62024/09/112 年前
1.6.52024/08/212 年前

关于 @asyncapi/markdown-template 的常见问题

@asyncapi/markdown-template 是什么?

Markdown template for the AsyncAPI generator.

如何安装 @asyncapi/markdown-template?

在项目目录运行 npm install @asyncapi/markdown-template,或使用 pnpm add / yarn add / bun add。

@asyncapi/markdown-template 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/asyncapi__markdown-template 是否存在。

@asyncapi/markdown-template 可以商用吗?

@asyncapi/markdown-template 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@asyncapi/markdown-template 的下载量有多少?

根据 npm 官方下载统计,@asyncapi/markdown-template 在 2026/10/07 – 2026/11/05 这 30 天内被下载 14,250 次,日均约 475 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@asyncapi/markdown-template 还在维护吗?

最新版本 2.0.0 发布于 2025/12/17(10 个月前);至今共发布 81 个版本,其中过去 12 个月发布了 3 个;首次发布于 2020/02/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。