{
  "source": "./stream.js",
  "method": "pipe",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "source": {
        "type": "any",
        "description": "Source stream. Should be a readable stream.",
        "required": true
      },
      "destination": {
        "type": "any",
        "description": "Destination stream. Should be a writable stream.",
        "required": true
      },
      "options": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "autoEndWriter": {
            "type": "boolean",
            "default": true,
            "description": "End the writer when the reader ends. Defaults to true."
          }
        }
      }
    }
  },
  "output-schema": {
      "type": "object",
      "properties": {
        "destination": {
          "type": "any",
          "description": "Destination stream. Useful for chaining."
        }
      }
  },
  "meta": {
    "name": "pipe",
    "description": "Pipe a readable stream to a writable stream. The flow of data will be automatically managed so that the destination stream is not overwhelmed by a faster source stream."
  }
}