code: function bufferReviver(k, v) {
      if (
          v !== null &&
          typeof v === 'object' &&
          'type' in v &&
          v.type === 'Buffer' &&
          'data' in v &&
          Array.isArray(v.data)) {
          return new Buffer(v.data);
      }
      return v;
  }
docs: Helper function that revives buffers from object representation on JSON.parse