Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SimpleFile

Hierarchy

  • SimpleFile

Constructors

Properties

Methods

Constructors

constructor

  • new SimpleFile(filename: string, data: string | Uint8Array): SimpleFile
  • Create a SimpleFile.

    throws

    {Error} When an invalid filename is provided.

    throws

    {Error} When invalid file data is provided.

    Parameters

    • filename: string

      Name for the file.

    • data: string | Uint8Array

      String or byte array with the file data.

    Returns SimpleFile

Properties

filename

filename: string

Methods

getBytes

  • getBytes(): Uint8Array

getText

  • getText(): string

Generated using TypeDoc