@aws-sdk/chunked-stream-reader-node

中文文档
3.973.0发布于 2026/09/10Apache-2.0TypeScriptESM + CJS近 30 天下载 19.1万

NPM version [NPM downloads](http

原始使用文档

@aws-sdk/chunked-stream-reader-node

NPM version NPM downloads

:warning: Internal API :warning:

This is an internal package. That means this is used as a dependency for other, public packages, but should not be taken directly as a dependency in your application's package.json.

If you are updating the version of this package, for example to bring in a bug-fix, you should do so by updating your application lockfile with e.g. npm up @scope/package or equivalent command in another package manager, rather than taking a direct dependency.


Exports a streamReader function that accepts a readable stream, a function to call on each chunk, and a chunk size in bytes to buffer internally before calling the supplied function.

This package is meant for the AWS SDK for JavaScript to enable reading a stream with consistent chunk sizes.

版本与发布记录

@aws-sdk/chunked-stream-reader-node 共发布 84 个版本,首次发布于 2018/11/20;过去 12 个月发布了 16 个版本。

版本发布日期距今
3.973.0latest2026/09/101 个月前
3.972.102026/08/152 个月前
3.972.92026/08/122 个月前
3.972.82026/06/164 个月前
3.972.72026/06/094 个月前
3.972.62026/06/065 个月前

其他发布通道:preview → 0.1.0-preview.4,alpha → 1.0.0-alpha.3,beta → 1.0.0-beta.2,gamma → 1.0.0-gamma.7,rc → 1.0.0-rc.8。

关于 @aws-sdk/chunked-stream-reader-node 的常见问题

@aws-sdk/chunked-stream-reader-node 是什么?

[](http

如何安装 @aws-sdk/chunked-stream-reader-node?

在项目目录运行 npm install @aws-sdk/chunked-stream-reader-node,或使用 pnpm add / yarn add / bun add。

@aws-sdk/chunked-stream-reader-node 支持 TypeScript 吗?

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

@aws-sdk/chunked-stream-reader-node 支持 ESM 还是 CommonJS?

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

@aws-sdk/chunked-stream-reader-node 需要什么版本的 Node.js?

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

@aws-sdk/chunked-stream-reader-node 可以商用吗?

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

@aws-sdk/chunked-stream-reader-node 的下载量有多少?

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

@aws-sdk/chunked-stream-reader-node 还在维护吗?

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