char-buffer

Collect CharCodes and convert them to string.

Usage no npm install needed!

<script type="module">
  import charBuffer from 'https://cdn.skypack.dev/char-buffer';
</script>

README

char-buffer Build Status Image Coverage Status Built with Grunt XO code style

Collect CharCodes and convert them to a string.

Install

$ npm install --save char-buffer

Usage

const CharBuffer = require('char-buffer');

// Create a CharBuffer
var buffer = new CharBuffer();

// Append a CharCode:
buffer.append(102);

// Append two more CharCodes:
buffer.append(111).append(111);

// Output 'foo':
console.log(buffer.toString());

Documentation

  • See API for thorough documentation.

Related

  • caesar-salad uses char-buffer for Caesar, Vigenere and ROT encryption.

License

MIT © Michael Mayer