h5.buffers

A set of classes to simplify and extend reading from and writing to node.js Buffers.

npm install h5.buffers
1 downloads in the last day
8 downloads in the last week
19 downloads in the last month

h5.buffers

A set of classes to simplify and extend reading from and writing to node.js Buffers.

Build Status

Installation

npm install h5.buffers

The npm package includes only the bare minimum required to use the library (i.e. the lib/ directory). Clone or download the repository if you need local access to doc/, example/ or spec/ directories.

Usage

Require the module:

var buffers = require('h5.buffers');

Instantiate any class and look up its API:

var reader = new buffers.BufferReader(new Buffer(256));
var builder = new buffers.BufferBuilder();
var queueReader = new buffers.BufferQueueReader();

API

Check out JSDoc comment in the source files or doc/ directory for API generated from these comments.

Examples

Check out example/ and spec/ directories.

Tests

To run the tests, clone the repository:

git clone git://github.com/morkai/h5.buffers.git

Make sure Grunt is installed globally: (if not, then check out the Grunt's Getting Started guide).

grunt -V

Install the development dependencies:

cd h5.buffers/
npm install

And execute the grunt test command.

To generate the code coverage report, execute the grunt coverage command. A detailed code coverage report will be generated in the build/coverage/ directory and can be viewed in the browser by opening the build/coverage/lcov-report/index.html file.

License

This project is released under the MIT License.

npm loves you