@airframes/acars-decoder

中文文档
1.9.5发布于 2026/10/30MITTypeScriptESM + CJS构建来源已验证近 30 天下载 2574

ACARS Message Decoder for TypeScript/JavaScript

原始使用文档

acars-decoder-typescript

NPM Version License: MIT GitHub Actions Workflow Status CodeRabbit Pull Request Reviews Contributors Activity Discord

ACARS is an aircraft communications messaging protocol that has been in use worldwide for a few decades. This library exists to specifically decode the text portion of the ACARS message payload.

The library is built around research and discoveries from the ACARS Message Documentation, a community effort to document the details of the ACARS message label/text payload.

It has been written in TypeScript (which compiles to Javascript) and is published as an NPM package.

You are welcome to contribute (please see https://github.com/airframesio/acars-message-documentation where we collaborate to research and document the various types of messages), and while it was primarily developed to power Airframes and AcarsHub, you may use this library in your own applications freely.

Node.js Support Policy

  • Runtime support: Node.js >= 18
  • Development and CI: validated on Node 18.x, 20.x, 22.x, and 24.x
  • TypeScript development uses the latest stable Node types (currently v24) without forcing consumers to use a specific Node types version, since @types/node is a devDependency.
  • The published builds are compiled targeting Node 18 runtime via tsup so they remain compatible across supported Node versions.

Installation

Add the @airframes/acars-decoder library to your JavaScript or TypeScript project.

With yarn:

yarn add @airframes/acars-decoder

With npm:

npm install @airframes/acars-decoder

Usage

Documentation coming soon.

Contributions

Contributions are welcome! Please follow the ACARS Message Documentation when implementing. Most find that this makes things a lot easier. Submit a Pull Request and we will gratefully review and merge.

Contributors

ContributorDescription
Kevin ElliottPrimary Airframes contributor
Michael JohnsonDecoder plugins, testing framework
Mark BumillerDecoder plugins, tests, utilities

版本与发布记录

@airframes/acars-decoder 共发布 91 个版本,首次发布于 2019/12/14;过去 12 个月发布了 25 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.9.5latest2026/10/308 天前
1.9.42026/10/2414 天前
1.9.32026/10/1622 天前
1.9.22026/08/172 个月前
1.9.12026/08/023 个月前
1.9.02026/06/084 个月前

关于 @airframes/acars-decoder 的常见问题

@airframes/acars-decoder 是什么?

ACARS Message Decoder for TypeScript/JavaScript

如何安装 @airframes/acars-decoder?

在项目目录运行 npm install @airframes/acars-decoder,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 acars-decoder、acars-decoder-test,可以用 npx acars-decoder 直接运行。

@airframes/acars-decoder 支持 TypeScript 吗?

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

@airframes/acars-decoder 支持 ESM 还是 CommonJS?

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

@airframes/acars-decoder 需要什么版本的 Node.js?

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

@airframes/acars-decoder 可以商用吗?

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

@airframes/acars-decoder 的下载量有多少?

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

@airframes/acars-decoder 还在维护吗?

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