Function read

  • Read a file to a stencila.Node.

    Type Parameters

    • Options extends CommonDecodeOptions

    Parameters

    • source: string

      The raw content or file path to read. Use - to read from standard input.

    • Optional format: string

      The format to read the file as. If undefined then determined from content or file path.

    • options: Options = ...

    Returns Promise<schema.Node>

Generated using TypeDoc