string_decoder

中文文档
1.3.0发布于 2019/08/07MITCommonJS近 30 天下载 10.9亿

The string_decoder module from Node core

原始使用文档
文档目录3 节
  1. Previous versions
  2. Update
  3. Streams Working Group

string_decoder

Node-core v8.9.4 string_decoder for userland

NPM NPM

npm install --save string_decoder

Node-core string_decoder for userland

This package is a mirror of the string_decoder implementation in Node-core.

Full documentation may be found on the Node.js website.

As of version 1.0.0 string_decoder uses semantic versioning.

Previous versions

Previous version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10.

Update

The build/ directory contains a build script that will scrape the source from the nodejs/node repo given a specific Node version.

Streams Working Group

string_decoder is maintained by the Streams Working Group, which oversees the development and maintenance of the Streams API within Node.js. The responsibilities of the Streams Working Group include:

  • Addressing stream issues on the Node.js issue tracker.
  • Authoring and editing stream documentation within the Node.js project.
  • Reviewing changes to stream subclasses within the Node.js project.
  • Redirecting changes to streams from the Node.js project to this project.
  • Assisting in the implementation of stream providers within Node.js.
  • Recommending versions of readable-stream to be included in Node.js.
  • Messaging about the future of streams to give the community advance notice of changes.

See readable-stream for more details.

版本与发布记录

string_decoder 共发布 16 个版本,首次发布于 2013/12/04;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.3.0latest2019/08/077 年前
1.2.02018/11/277 年前
1.1.12018/03/308 年前
1.1.02018/03/068 年前
1.0.32017/06/239 年前
1.0.22017/06/069 年前

关于 string_decoder 的常见问题

string_decoder 是什么?

The string_decoder module from Node core

如何安装 string_decoder?

在项目目录运行 npm install string_decoder,或使用 pnpm add / yarn add / bun add。

string_decoder 支持 TypeScript 吗?

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

string_decoder 支持 ESM 还是 CommonJS?

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

string_decoder 可以商用吗?

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

string_decoder 的下载量有多少?

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

string_decoder 还在维护吗?

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