code: function toBuffer (typed) {
          var ab = typed.buffer;
          var buffer = new Buffer(ab.byteLength);
          var view = new Uint8Array(ab);
          for (var i = 0; i < buffer.length; ++i) {
              buffer[i] = view[i];
          }
          return buffer;
      }
docs: To node.js Buffer