@cdktf/node-pty-prebuilt-multiarch

中文文档
0.10.2发布于 2025/04/16MITTypeScriptCommonJS近 30 天下载 57.9万

Fork pseudoterminals in Node.JS

原始使用文档
文档目录4 节
  1. Usage
  2. How It Works
  3. Prebuilt Versions
  4. License

node-pty-prebuilt-multiarch

Prebuild Binaries

This project is a parallel fork of node-pty providing prebuilt packages for certain Node.js and Electron versions.

Based on oznu/node-pty-prebuilt-multiarch which was inspired by daviwil/node-pty-prebuilt.

Usage

Thanks to the excellent prebuild and prebuild-install modules, using this module is extremely easy. You merely have to change your node-pty dependency to node-pty-prebuilt-multiarch and then change any require statements in your code from require('node-pty') to require('node-pty-prebuilt-multiarch').

NOTE: We started shipping prebuilds as of node-pty version 0.8.1, no prior versions are provided! If you were using an earlier version of node-pty you will need to update your code to account for any API changes that may have occurred.

How It Works

We maintain a parallel fork of the node-pty codebase that will be updated as new releases are shipped. When we merge new updates to the code into the prebuilt-multiarch branch, new prebuilt packages for our supported Node.js and Electron versions are updated to the corresponding GitHub release.

When node-pty-prebuilt-multiarch is installed as a package dependency, the install script checks to see if there's a prebuilt package on this repo for the OS, ABI version, and architecture of the current process and then downloads it, extracting it into the module path. If a corresponding prebuilt package is not found, node-gyp is invoked to build the package for the current platform.

Prebuilt Versions

OSArchitectures
macOSx64, arm64
Linux (glibc)ia32, x64, armv6, aarch64
Linux (musl)x64, armv6, aarch64
Windowsia32, x64

*We only provide prebuilt binaries for Node.js 10 and Electron 5.0.0 or higher.

License

  • Copyright (c) 2012-2015, Christopher Jeffrey (MIT License).
  • Copyright (c) 2016, Daniel Imms (MIT License).
  • Copyright (c) 2018, Microsoft Corporation (MIT License).
  • Copyright (c) 2018, David Wilson (MIT License).
  • Copyright (c) 2018, oznu (MIT License).

版本与发布记录

@cdktf/node-pty-prebuilt-multiarch 共发布 7 个版本,首次发布于 2023/01/12;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.10.2latest2025/04/161.6 年前
0.10.1-pre.112023/10/093 年前
0.10.1-pre.102023/01/133 年前
0.10.1-pre.92023/01/133 年前
0.10.1-pre.82023/01/123 年前
0.10.1-pre.72023/01/123 年前

其他发布通道:test → 0.10.1-pre.6。

关于 @cdktf/node-pty-prebuilt-multiarch 的常见问题

@cdktf/node-pty-prebuilt-multiarch 是什么?

Fork pseudoterminals in Node.JS

如何安装 @cdktf/node-pty-prebuilt-multiarch?

在项目目录运行 npm install @cdktf/node-pty-prebuilt-multiarch,或使用 pnpm add / yarn add / bun add。

@cdktf/node-pty-prebuilt-multiarch 支持 TypeScript 吗?

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

@cdktf/node-pty-prebuilt-multiarch 支持 ESM 还是 CommonJS?

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

@cdktf/node-pty-prebuilt-multiarch 可以商用吗?

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

@cdktf/node-pty-prebuilt-multiarch 的下载量有多少?

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

@cdktf/node-pty-prebuilt-multiarch 还在维护吗?

最新版本 0.10.2 发布于 2025/04/16(1.6 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/01/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。