# fbuffer

> fluent buffer

Latest version **1.0.8** (published 2015-02-12) · MIT license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2015-02-12 |
| First published | 2015-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | S |
| Maintainers | slightboy |
| Keywords | buffer |

## Links

- npm: https://www.npmjs.com/package/fbuffer
- Repository: https://github.com/epicINC/FBuffer
- Issues: https://github.com/epicINC/FBuffer/issues
- npm.io page: https://npm.io/package/fbuffer

## Dependencies (1)

- [ref](https://npm.io/package/ref.md) ^1.0.0

## 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.8 (latest) — 2015-02-12
- 1.0.7 — 2015-02-12
- 1.0.6 — 2015-02-12
- 1.0.5 — 2015-02-09
- 1.0.4 — 2015-02-09
- 1.0.3 — 2015-02-06
- 1.0.2 — 2015-02-06
- 1.0.1 — 2015-02-06
- 1.0.0 — 2015-02-06

## README

# FBuffer
fluent buffer

## Update

*  add trimstring
*  fix some bug
*  add long type(ref)

## Install

```js
npm i fubffer
```

## How to use

```js
var fbuffer = require('fbuffer');
```
buffer writer:
```js
var pack = fbuffer().byte(4).int(8).string('demo', 'utf8').pack();
console.log(pack);
```

buffer reader:
```js
var result = fbuffer(pack).byte().int().string().unpack();
console.log(result);
```

buffer step reader:
```js
var reader = fbuffer(pack, 'step');
console.log(reader.byte());
console.log(reader.int());
console.log(reader.string());
```

## License

MIT

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