@datadog/libdatadog-extras

中文文档
0.22.0发布于 2026/11/07Apache-2.0CommonJS零依赖构建来源已验证近 30 天下载 2162.9万

Optional native and WASM libdatadog functionality for Node.js

原始使用文档

libdatadog Node.js bindings

Node.js bindings for libdatadog, published as two packages with different availability guarantees.

Internal packages: These packages are published solely for use by dd-trace. They are not supported as standalone APIs and must not be used directly by applications or other libraries. Their APIs, behavior, and distribution may change without notice.

  • @datadog/libdatadog provides functionality required in every environment through inlined WASM.
  • @datadog/libdatadog-extras provides additional functionality that is not available or needed everywhere through native prebuilds and standalone WASM modules.

@datadog/libdatadog

The package is maintained under packages/libdatadog. Zstandard compression, DDSketch, and the agentless data pipeline use a wasm-bindgen backend whose WebAssembly bytes are embedded in JavaScript. No raw .wasm asset or native extension is published.

Remote configuration is available from @datadog/libdatadog/remote-config. It uses a dedicated wasm-bindgen artifact that loads only with this entry point.

See the package README for implementation and packaging details.

@datadog/libdatadog-extras

The root package contains optional capabilities such as crash tracking, process discovery, the legacy pipeline, and library configuration. Platform-native extensions are combined under platform-specific directories in prebuilds. Standalone WASM modules are stored under capability-specific directories in the same location.

版本与发布记录

@datadog/libdatadog-extras 共发布 5 个版本,首次发布于 2026/09/01;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.22.0latest2026/11/074 天前
0.21.02026/09/052 个月前
0.20.02026/09/022 个月前
0.19.02026/09/012 个月前
0.0.02026/09/012 个月前

关于 @datadog/libdatadog-extras 的常见问题

@datadog/libdatadog-extras 是什么?

Optional native and WASM libdatadog functionality for Node.js

如何安装 @datadog/libdatadog-extras?

在项目目录运行 npm install @datadog/libdatadog-extras,或使用 pnpm add / yarn add / bun add。

@datadog/libdatadog-extras 支持 TypeScript 吗?

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

@datadog/libdatadog-extras 支持 ESM 还是 CommonJS?

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

@datadog/libdatadog-extras 可以商用吗?

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

@datadog/libdatadog-extras 的下载量有多少?

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

@datadog/libdatadog-extras 还在维护吗?

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