# arraybuffer-equal

> Determines if two array buffers contain the exact same content

Latest version **1.0.4** (published 2015-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install arraybuffer-equal
pnpm add arraybuffer-equal
yarn add arraybuffer-equal
bun add arraybuffer-equal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2015-10-26 |
| First published | 2015-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Will Binns-Smith |
| Maintainers | wbinnssmith |
| Keywords | arraybuffers, arraybuffer, array buffer, buffer, typed arrays, typed array, equality |

## Links

- npm: https://www.npmjs.com/package/arraybuffer-equal
- Repository: https://github.com/wbinnssmith/arraybuffer-equal
- Homepage: https://github.com/wbinnssmith/arraybuffer-equal#readme
- Issues: https://github.com/wbinnssmith/arraybuffer-equal/issues
- npm.io page: https://npm.io/package/arraybuffer-equal

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2015-10-26
- 1.0.3 — 2015-10-06
- 1.0.2 — 2015-10-05
- 1.0.1 — 2015-10-05

## README

# arraybuffer-equal

Determines if two array buffers contain the exact same content. Works in node 0.10+ and in the browser using [browserify](https://github.com/substack/node-browserify).

[![Build Status](https://travis-ci.org/wbinnssmith/arraybuffer-equal.svg)](https://travis-ci.org/wbinnssmith/arraybuffer-equal)

## Installation

`npm install --save arraybuffer-equal`

## Usage

```js
var isEqual = require('arraybuffer-equal');

var buf1 = new Uint8Array([0x50, 0x0a]).buffer;
var buf2 = new Uint8Array([0x50, 0x0a]).buffer;
var buf3 = new Uint8Array([0x50, 0x0b]).buffer;
var buf4 = new Uint8Array([0x50, 0x0b, 0x15]).buffer;

assert(isEqual(buf1, buf1));
assert(isEqual(buf1, buf2));
assert(!isEqual(buf1, buf3));
assert(!isEqual(buf1, buf4));
```

## License
(c) 2015 Will Binns-Smith. Licensed MIT.

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