code: function normalizeOptions(options = undefined) {
    switch (true) {
      case isPlainObject(options):
        return {
          ...defaults, ...options
        }
  
      case options && typeof options === "string":
        return {
          ...defaults, encoding: options
        }
  
      default:
        return defaults
    }
  }
docs: @param {string | object} options
  
  @return {object}
  
  @api private