Package Exports
- buffer.ws
- buffer.ws/src/BufferWS.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (buffer.ws) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
buffer.ws
A simple, light and fast bytebuffer implementation under node.js
Table of Contents
Installation
Install the package:
npm i buffer.wsImporting the package with require:
var BufferWS = require("buffer.ws");
or with import:
import { BufferWS } from 'buffer.ws';
Usage
Importing the package with require
var BufferWS = require("buffer.ws");
var buffer = new BufferWS()
.writeInt(39)
.writeString("Hello!")
.flip();
console.log(buffer.readInt(), buffer.readString()); // 39 Hello!
Testing
npm run test