@ensdomains/buffer

中文文档
0.1.3发布于 2025/11/25BSD-2-Clause零依赖近 30 天下载 1.6万

Build Status License

原始使用文档
文档目录8 节
  1. Getting Started
  2. Installing
  3. Running tests
  4. Including Buffer in your project
  5. Installation
  6. Built With
  7. Authors
  8. License

Buffer

Build Status License

A library for working with mutable byte buffers in Solidity.

Byte buffers are mutable and expandable, and provide a variety of primitives for writing to them. At any time you can fetch a bytes object containing the current contents of the buffer. The bytes object should not be stored between operations, as it may change due to resizing of the buffer.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

Buffer uses npm to manage dependencies, therefore the installation process is kept simple:

npm install

Running tests

Buffer uses truffle for its ethereum development environment. All tests can be run using truffle:

truffle test

To run linting, use solium:

solium --dir ./contracts

Including Buffer in your project

Installation

npm install buffer --save

Built With

  • Truffle - Ethereum development environment

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the BSD 2-clause "Simplified" License - see the LICENSE file for details

版本与发布记录

@ensdomains/buffer 共发布 13 个版本,首次发布于 2018/07/20;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.1.3latest2025/11/2511 个月前
0.1.22025/11/2411 个月前
0.1.12023/02/283 年前
0.1.02022/03/304 年前
0.0.132021/05/315 年前
0.0.122021/05/295 年前

关于 @ensdomains/buffer 的常见问题

如何安装 @ensdomains/buffer?

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

@ensdomains/buffer 支持 TypeScript 吗?

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

@ensdomains/buffer 可以商用吗?

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

@ensdomains/buffer 的下载量有多少?

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

@ensdomains/buffer 还在维护吗?

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