@azure/keyvault-common

中文文档
2.1.1发布于 2026/11/01MITTypeScriptESM + CJS近 30 天下载 2844.6万

Common internal functionality for all of the Azure Key Vault clients in the Azure SDK for JavaScript

原始使用文档
文档目录8 节
  1. Key Vault client libraries
  2. Getting started
  3. Key concepts
  4. Examples
  5. Next steps
  6. Troubleshooting
  7. Logging
  8. Contributing

Azure Key Vault Common client library for JavaScript

An internal support library for the various Azure Key Vault client libraries.

This package contains common code that needs to be shared among the other Azure Key Vault libraries. It is not meant for usage by any other consumers.

Key Vault client libraries

The following client libraries use this package:

Getting started

For information on getting started, please see our Key Vault client libraries.

Key concepts

For information on key concepts, please see our Key Vault client libraries.

Examples

For examples, please see our Key Vault client libraries.

Next steps

For information on next steps, please see our Key Vault client libraries.

Troubleshooting

If you run into issues while using this library, directly or indirectly, please feel free to file an issue.

Logging

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the AZURE_LOG_LEVEL environment variable to info. Alternatively, logging can be enabled at runtime by calling setLogLevel in the @azure/logger:

import { setLogLevel } from "@azure/logger";

setLogLevel("info");

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

版本与发布记录

@azure/keyvault-common 共发布 302 个版本,首次发布于 2022/10/22;过去 12 个月发布了 59 个版本。

版本发布日期距今
2.1.1latest2026/11/017 天前
2.1.02026/04/106 个月前
2.0.2-alpha.20260306.1dev2026/03/078 个月前
2.0.2-alpha.20260305.12026/03/068 个月前
2.0.2-alpha.20260304.22026/03/058 个月前
2.0.2-alpha.20260303.12026/03/048 个月前

关于 @azure/keyvault-common 的常见问题

@azure/keyvault-common 是什么?

Common internal functionality for all of the Azure Key Vault clients in the Azure SDK for JavaScript

如何安装 @azure/keyvault-common?

在项目目录运行 npm install @azure/keyvault-common,或使用 pnpm add / yarn add / bun add。

@azure/keyvault-common 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@azure/keyvault-common 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@azure/keyvault-common 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@azure/keyvault-common 可以商用吗?

@azure/keyvault-common 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@azure/keyvault-common 的下载量有多少?

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

@azure/keyvault-common 还在维护吗?

最新版本 2.1.1 发布于 2026/11/01(7 天前);至今共发布 302 个版本,其中过去 12 个月发布了 59 个;首次发布于 2022/10/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。