index.js
function _createStreamPointer(self, stream, serializer) {
  let id = uuid();
  let readable = typeof stream.read === 'function';
  let type = readable ? 'readable' : 'writable';
  let pointer = `boscar:${type}:${id}`;

  self.streams.set(id, stream);

  if (readable) {
    _bindReadable(pointer, stream, serializer);
  }

  return pointer;
}
function _createStreamPointer(self, stream, serializer) {
  let id = uuid();
  let readable = typeof stream.read === 'function';
  let type = readable ? 'readable' : 'writable';
  let pointer = `boscar:${type}:${id}`;

  self.streams.set(id, stream);

  if (readable) {
    _bindReadable(pointer, stream, serializer);
  }

  return pointer;
}
function _createStreamPointer ( self , stream , serializer ) { let id = uuid ( ) ; let readable = typeof stream . read === 'function' ; let type = readable ? 'readable' : 'writable' ; let pointer = ` ${ type } ${ id } ` ; self . streams . set ( id , stream ) ; if ( readable ) { _bindReadable ( pointer , stream , serializer ) ; } return pointer ; }
Converts a stream object into a pointer string and sets up stream tracking
@param {object} self - Object with a `streams` property
@param {object} stream
@param {object} serializer
@returns {string}
Converts a stream object into a pointer string and sets up stream tracking