{
  "source": "./stream.js",
  "method": "checkStream",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "stream": {
        "type": "any",
        "description": "Stream to check.",
        "required": true
      }
    }
  },
  "output-schema": {
    "type": "object",
    "properties": {
      "isStream": {
        "type": "boolean",
        "description": "Will be true if the input is a stream."
      },
      "type": {
        "type": "string",
        "description": "Will be one of 'readable', 'writable', 'duplex' or 'transform'."
      },
      "isReadStream": {
        "type": "boolean"
      },
      "isWriteStream": {
        "type": "boolean"
      },
      "isDuplexStream": {
        "type": "boolean"
      },
      "isTransformStream": {
        "type": "boolean"
      },
      "isReadReady": {
        "type": "boolean",
        "description": "Will be true if the stream is in a readable state."
      },
      "isWriteReady": {
        "type": "boolean",
        "description": "Will be true if the stream is in a writable state."
      }
    }
  },
  "meta": {
    "name": "check",
    "description": "Inspect the stream."
  }
}