# nybble

> Bitbuffer and bitstream parser

Latest version **1.0.4** (published 2014-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install nybble
pnpm add nybble
yarn add nybble
bun add nybble
```

## 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 | 2014-10-22 |
| First published | 2014-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Peter Bjorklund |
| Maintainers | piot |
| Keywords | bit, buffer, parser |

## Links

- npm: https://www.npmjs.com/package/nybble
- Repository: https://github.com/piot/nybble
- Issues: https://github.com/piot/nybble/issues
- npm.io page: https://npm.io/package/nybble

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2014-10-22
- 1.0.3 — 2014-10-22
- 1.0.2 — 2014-10-22
- 1.0.1 — 2014-10-21
- 1.0.0 — 2014-10-21

## README

# Nybble

Read bits from a buffer or octet array.

## Installation

`npm install nybble`

## Usage

```CoffeeScript
nybble = require 'nybble'

buffer = nybble.bitBuffer [0xca, 0xfe]
a = buffer.readUnsigned 0, 4

# a should be equal to 0xa
```

#### readUnsigned(bitOffset, bitLength)

Returns the unsigned integer value.

#### readSigned(bitOffset, bitLength)

Returns the signed integer value.

#### readFloat(bitOffset)

Returns the single precision IEEE 754 float.

#### readDouble(bitOffset)

Returns the double precision IEEE 754 float.

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