API-compatible Node.JS Buffer for Ender.js (browser)
Latest commit 3dcb528 Aug 1, 2011 @coolaj86 typo fix caes->cases
Failed to load latest commit information.
README.md typo fix caes->cases Aug 1, 2011
index.js first commit Aug 1, 2011
package.json first commit Aug 1, 2011



The goal is to use UInt8Array as a buffer backend that completely follows the Node.JS API.

For now, however, this just aliases Array as Buffer which works for many use cases.

Current Implementation

var Buffer;
(function () {
  "use strict";

  function createBuffer() {
    return Array;

  if ('undefined' === typeof Buffer) {
    Buffer = createBuffer();

  module.exports = Buffer;