Class FileCollection

Constructors

Properties

Methods

  • Parameters

    • relativePath: string
    • arrayBuffer: ArrayBuffer
    • options: {
          dateModified?: number;
      } = {}
      • Optional dateModified?: number

    Returns void

  • Parameters

    • relativePath: string
    • text: string
    • options: {
          dateModified?: number;
      } = {}
      • Optional dateModified?: number

    Returns void

  • Parameters

    • relativePath: string
    • typedArray: Uint8Array
    • options: {
          dateModified?: number;
      } = {}
      • Optional dateModified?: number

    Returns void

  • Zip the FileCollection This method returns a new FileCollection that contains only one FileItem that is the zipped file (called by default 'file.zip') Not sure this is super useful and we should probably remove it and replace it by fileCollectionToZip

    Returns Promise<Uint8Array>