# buffermaker

> BufferMaker is a convenient way of creating binary strings

Latest version **1.2.1** (published 2019-06-03) · MIT license · 0 weekly downloads

## Install

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

## 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.2.1 |
| Published | 2019-06-03 |
| First published | 2012-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Gregg Caines |
| Maintainers | cainus |
| Keywords | buffer, binary |

## Links

- npm: https://www.npmjs.com/package/buffermaker
- Repository: https://github.com/cainus/BufferMaker
- Issues: https://github.com/cainus/BufferMaker/issues
- npm.io page: https://npm.io/package/buffermaker

## Dependencies (1)

- [long](https://npm.io/package/long.md) 1.1.2

## 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.2.1 (latest) — 2019-06-03
- 1.2.0 — 2014-07-08
- 1.1.0 — 2014-05-20
- 1.0.0 — 2013-09-13
- 0.0.11 — 2013-07-26
- 0.0.10 — 2013-04-26
- 0.0.9 — 2013-04-04
- 0.0.8 — 2012-09-11
- 0.0.7 — 2012-09-10
- 0.0.6 — 2012-09-10
- 0.0.5 — 2012-09-10
- 0.0.4 — 2012-09-08
- 0.0.3 — 2012-09-07
- 0.0.2 — 2012-09-06
- 0.0.1 — 2012-09-06

## README

BufferMaker
===========


## Please note: This project is no longer maintained.

[![Build Status](https://secure.travis-ci.org/cainus/BufferMaker.png?branch=master)](http://travis-ci.org/cainus/BufferMaker)
[![Coverage Status](https://coveralls.io/repos/cainus/BufferMaker/badge.png?branch=master)](https://coveralls.io/r/cainus/BufferMaker)
[![NPM version](https://badge.fury.io/js/buffermaker.png)](http://badge.fury.io/js/buffermaker)

A convenient way of creating binary strings in node.js because Buffer is a bit too low-level for comfort in this regard.  

Examples:  

```javascript
// unsigned varieties
var someBuffer = new BufferMaker()
                        .UInt8(1)
                        .UInt16BE(2)
                        .UInt32BE(3)
                        .Int64BE(4)     // uses the BigNum library
                        .string("this is a test!")
                        .make();
//  <Buffer 01 00 02 00 00 00 03 00 00 00 00 00 00 00 04 74 68 69 73 20 69 73 20 61 20 74 65 73 74 21>

// signed are also supported:
var someBuffer = new BufferMaker()
                        .Int8(1)
                        .Int16BE(2)
                        .Int32BE(3)
                        .Int64BE(4)
                        .make();
// <Buffer 01 00 02 00 00 00 03 00 00 00 00 00 00 00 04> 

// others...
var someBuffer = new BufferMaker()
                    .UInt16LE(1)
                    .UInt32LE(2)
                    .Int16LE(3)
                    .Int32LE(4)
                    .FloatLE(5)
                    .FloatBE(6)
                    .DoubleLE(7)
                    .DoubleBE(8)
                    .make();
// <Buffer 01 00 02 00 00 00 03 00 04 00 00 00 00 00 a0 40 40 c0 00 00 00 00 00 00 00 00 1c 40 40 20 00 00 00 00 00 00>
```

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