@api-components/raml-aware

中文文档
3.0.0发布于 2019/06/12Apache-2.0CommonJS零依赖近 30 天下载 3124

Element that is aware of the RAML content

此软件包已被标记为弃用

This component is no longer developed and used in API Console

原始使用文档

Build Status

Published on webcomponents.org

raml-aware

<raml-aware> Element that is aware of the AMF (RAML, OAS) content.

<h3>Basic authorization</h3>
<raml-aware raml='{"scope": "request"}' scope="request"></raml-aware>
<raml-aware raml='{"scope": "import"}' scope="import"></raml-aware>

<raml-aware id="a1" scope="request"></raml-aware>
<raml-aware id="a2" scope="import"></raml-aware>
<output id="o1"></output>
<script>
o1.innerText = JSON.stringify(a1.raml) + '<br/>';
o1.innerText += JSON.stringify(a2.raml);
</script>

API components

This components is a part of API components ecosystem: https://elements.advancedrestclient.com/

版本与发布记录

@api-components/raml-aware 共发布 4 个版本,首次发布于 2018/05/17;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.0latest2019/06/127 年前
3.0.0-preview.22019/04/057 年前
3.0.0-preview.12019/02/197 年前
2.0.02018/05/178 年前

关于 @api-components/raml-aware 的常见问题

@api-components/raml-aware 是什么?

Element that is aware of the RAML content注意:该包已被作者标记为弃用——This component is no longer developed and used in API Console

如何安装 @api-components/raml-aware?

在项目目录运行 npm install @api-components/raml-aware,或使用 pnpm add / yarn add / bun add。

@api-components/raml-aware 支持 TypeScript 吗?

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

@api-components/raml-aware 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@api-components/raml-aware 可以商用吗?

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

@api-components/raml-aware 的下载量有多少?

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

@api-components/raml-aware 还在维护吗?

最新版本 3.0.0 发布于 2019/06/12(7 年前);至今共发布 4 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/05/17。作者已将其标记为弃用,新项目建议寻找替代方案。