Translate ArrayBuffers to strings and vice versa in JavaScript.
npm install bufferjs-webHTML
`
Usage in the browser:
`JavaScriptBuff = window.Buff;
var buffer = Buff.Writer('a test string'); // Translates the string "test" info an ArrayBuffer.
var string = Buff.Reader(buffer); // Translates the ArrayBuffer back into the string "test".
`Node.JS
Install with the command:
`BASH
npm i bufferjs-web
`
Usage in Node.js:
`JavaScriptconst Buff = require('bufferjs-web');
var buffer = Buff.Writer('a test string'); // Translates the string "test" info an ArrayBuffer.
var string = Buff.Reader(buffer); // Translates the ArrayBuffer back into the string "test".
``