{
  "source": "./stream.js",
  "method": "write",
  "hidden": true,
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "writable": {
        "type": "any",
        "description": "Writable stream.",
        "required": true
      },
      "chunk": {
        "type": "any",
        "description": "Data to write. Chunk must be a string, Buffer or Uint8Array."
      },
      "options": {
        "type": "object",
        "properties": {
          "encoding": {
            "type": "string",
            "enum": ["utf8", "utf-8", "ascii", "binary", "latin1", "hex", "base64", "base64url", "ucs2", "ucs-2", "utf16le", "utf-16le"],
            "description": "Encoding. Defaults to 'utf8'."
          }
        }
      }
    }
  },
  "output-schema": {
      "type": "object",
      "properties": {
        "waitForDrain": {
          "type": "boolean",
          "description": "Flag that denote if the calling code should wait for 'drain' event to be emitted before continuing to write additional data."
        }
      }
  },
  "meta": {
    "name": "write",
    "description": "Write data to the stream."
  }
}