{
  "source": "../file.js",
  "method": "createWriter",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "path": {
        "type": "any",
        "format": "filechooser",
        "required": true
      },
      "options": {
        "type": "object",
        "additionalProperties": true,
        "displayOptions": {
          "showCollapsed": true
        },
        "properties": {
          "flags": {
            "type": "string",
            "enum": ["a", "ax", "a+", "ax+", "as", "as+", "r", "r+", "rs+", "w", "wx", "w+", "wx+"],
            "description": "File system flags. E.g. 'a' open file for appending, 'r' for reading, 'r+' for both reading and writing, etc. Defaults to 'w'"
          },
          "encoding": {
            "type": "string",
            "enum": ["utf8", "utf-8", "ascii", "binary", "latin1", "hex", "base64", "base64url", "ucs2", "ucs-2", "utf16le", "utf-16le"],
            "description": "Encoding. Defaults to null."
          },
          "start": {
            "type": "integer",
            "description": "Start offset. Setting will allow writing data at some position past the beginning of the file. Allowed values are in the [0, Number.MAX_SAFE_INTEGER] range."
          }
        }
      }
    }
  },
  "output-schema": {
    "type": "object",
    "properties": {
        "writeStream": {
          "type": "any"
        }
      }
  },
  "meta": {
    "name": "createWriter",
    "description": "Create a writable stream."
  }
}