{
  "source": "../file.js",
  "method": "createReader",
  "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 'r'"
          },
          "encoding": {
            "type": "string",
            "enum": ["utf8", "utf-8", "ascii", "binary", "latin1", "hex", "base64", "base64url", "ucs2", "ucs-2", "utf16le", "utf-16le"],
            "description": "Set encoding. Defaults to empty (null)."
          },
          "start": {
            "type": "integer",
            "description": "Start offset. Setting will allow reading data at some position past the beginning of the file. Allowed values are in the [0, Number.MAX_SAFE_INTEGER] range."
          },
          "end": {
            "type": "integer",
            "description": "End value. Allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Defaults to Infinity."
          },
          "highWaterMark": {
            "type": "integer",
            "description": "The amount of data potentially buffered depends on the highWaterMark. Value is in bytes. Defaults to 65,536 (64kb)."
          }
        }
      }
    }
  },
  "output-schema": {
      "type": "object",
      "properties": {
          "readStream": {
            "type": "any"
          }
      }
  },
  "meta": {
    "name": "createReader",
    "description": "Create a readable stream."
  }
}