# @ensdomains/buffer

> [![Build Status](https://travis-ci.com/ensdomains/buffer.svg?branch=master)](https://travis-ci.com/ensdomains/buffer) [![License](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](LICENSE)

Latest version **0.1.3** (published 2025-11-25) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @ensdomains/buffer
pnpm add @ensdomains/buffer
yarn add @ensdomains/buffer
bun add @ensdomains/buffer
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2025-11-25 |
| First published | 2018-07-20 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | makoto_inoue, nickjohnson, jefflau, mdt., leeondamiky, taytems, adraffy, v1rtl |

## Links

- npm: https://www.npmjs.com/package/@ensdomains/buffer
- npm.io page: https://npm.io/package/@ensdomains/buffer

## Recent versions

- 0.1.3 (latest) — 2025-11-25
- 0.1.0 — 2022-03-30
- 0.0.13 — 2021-05-31
- 0.0.12 — 2021-05-28
- 0.0.11 — 2021-05-28
- 0.0.10 — 2019-04-10
- 0.0.9 — 2019-04-08
- 0.0.8 — 2019-03-26
- 0.0.7 — 2019-03-12
- 0.0.6 — 2018-12-20
- 0.0.5 — 2018-07-20

## README

# Buffer

[![Build Status](https://travis-ci.com/ensdomains/buffer.svg?branch=master)](https://travis-ci.com/ensdomains/buffer) [![License](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](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](https://github.com/trufflesuite/truffle) - Ethereum development environment 


## Authors

* **Nick Johnson** - [Arachnid](https://github.com/Arachnid)

See also the list of [contributors](https://github.com/ensdomains/buffer/contributors) who participated in this project.

## License

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

---
_Source: https://npm.io/package/@ensdomains/buffer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
