@bacnet-js/client

中文文档
3.3.2发布于 2026/05/07MITTypeScriptCommonJS近 30 天下载 1.5万

A BACnet® protocol stack written in pure TypeScript.

原始使用文档
文档目录7 节
  1. 1. Install
  2. 2. Docs
  3. 3. Examples
  4. 4. Features
  5. 5. Contribution
  6. 6. License
  7. 7. Note

BACnet JS Client

CI npm npm Coverage Status

A BACnet® protocol stack written in pure TypeScript from contributors and maintained by Innovation-System. BACnet® is a protocol to interact with building automation devices defined by ASHRAE.

1. Install

Run the following command npm install @bacnet-js/client

2. Docs

Documentation is available here.

3. Examples

Examples are available here

4. Features

The BACnet standard defines a wide variety of services as part of it's specification. While @bacnet-js/client tries to be as complete as possible, following services are already supported at this point in time:

ServiceExecuteHandle
Who Isyesyes
I Amyes¹yes
Who Hasyes¹yes¹
I Haveyes¹yes¹
Time Syncyesyes
UTC Time Syncyesyes
Read Propertyyesyes¹
Read Property Multipleyesyes¹
Read Rangeyesyes¹
Write Propertyyesyes¹
Write Property Multipleyesyes¹
Add List Elementyes¹yes¹
Remove List Elementyes¹yes¹
Create Objectyes¹yes¹
Delete Objectyesyes¹
Subscribe COVyesyes¹
Subscribe Propertyyesyes¹
Atomic Read Fileyesyes¹
Atomic Write Fileyesyes¹
Reinitialize Deviceyesyes¹
Device Communication Controlyesyes¹
Get Alarm Summary²yesyes¹
Get Event Informationyesyes¹
Get Enrollment Summary²yesyes¹
Acknowledge Alarmyes¹yes¹
Confirmed Event Notificationyes¹yes¹
Unconfirmed Event Notificationyes¹yes¹
Unconfirmed Private Transferyesyes¹
Confirmed Private Transferyesyes¹

¹ Support implemented as Beta (untested, undocumented, breaking interface) ² Deprecated BACnet® function, available for backwards compatibility

5. Contribution

Special thanks to Fabio Huser for the fundamental work.

6. License

MIT

7. Note

This is not an official product of the BACnet Advocacy Group. BACnet® is a registered trademark of American Society of Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE). We're buying the specifications of ASHARE to programm for this library.

版本与发布记录

@bacnet-js/client 共发布 9 个版本,首次发布于 2025/06/30;过去 12 个月发布了 5 个版本。

版本发布日期距今
3.3.2latest2026/05/076 个月前
3.3.12026/04/017 个月前
3.3.02026/03/048 个月前
3.2.02026/03/028 个月前
3.1.02026/02/118 个月前
3.0.12025/09/261.1 年前

关于 @bacnet-js/client 的常见问题

@bacnet-js/client 是什么?

A BACnet® protocol stack written in pure TypeScript.

如何安装 @bacnet-js/client?

在项目目录运行 npm install @bacnet-js/client,或使用 pnpm add / yarn add / bun add。

@bacnet-js/client 支持 TypeScript 吗?

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

@bacnet-js/client 支持 ESM 还是 CommonJS?

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

@bacnet-js/client 需要什么版本的 Node.js?

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

@bacnet-js/client 可以商用吗?

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

@bacnet-js/client 的下载量有多少?

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

@bacnet-js/client 还在维护吗?

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