code: function Serializer(opts) {
    if (this instanceof Serializer) {
      opts = opts || {};
      this.opts = opts;
      this._p = Promise.resolve();
    } else {
      return new Serializer(opts);
    }
  }
docs: Constructor.