# get-byte

> A Universal way of getting a Byte at a Given Index from a variety of in-memory data formats, including Uint8Array, Buffer, DataView, and Array Buffer

Latest version **0.0.0** (published 2020-09-06) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install get-byte
pnpm add get-byte
yarn add get-byte
bun add get-byte
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2020-09-06 |
| First published | 2020-09-06 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | array, arraybuffer, bits, buffer, byte, dataview, uint8, uint8array |

## Links

- npm: https://www.npmjs.com/package/get-byte
- Repository: https://github.com/DanielJDufour/get-byte
- Homepage: https://github.com/DanielJDufour/get-byte#readme
- Issues: https://github.com/DanielJDufour/get-byte/issues
- npm.io page: https://npm.io/package/get-byte

## 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

- 0.0.0 (latest) — 2020-09-06

## README

# get-byte
A **Universal** way of getting a Byte at a Given Index from a variety of in-memory data formats, including Uint8Array, Buffer, DataView, and Array Buffer

# install
```bash
npm install get-byte
```

# usage
```javascript
import getByte from 'get-byte';

// gets the 10th byte from a buffer
getByte(buffer, 10);

// gets the 10th byte from an array buffer
getByte(arrayBuffer, 10);

// gets the 10th byte from a data view
getByte(dataView, 10);

// gets the 10th byte from a Uint8Array
getByte(uint8Array, 10);
```

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