JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q45569F
  • License GPL-3.0-or-later

A simple, light and fast bytebuffer implementation under node.js

Package Exports

  • buffer.ws
  • buffer.ws/dist/BufferWS.js

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

Hits Inline docs

Table of Contents

Installation

Install the package:

npm i buffer.ws

Importing the package with require:

var BufferWS = require("buffer.ws");

or with import:

import { BufferWS } from 'buffer.ws';

Usage

Example:

var BufferWS = require("buffer.ws");

var buffer = new BufferWS()
                .writeInt(39)
                .writeString("Hello!")
                .flip();
console.log(buffer.readInt(), buffer.readString()); // 39 Hello!

Wiki

Testing

npm run test