Type alias AsarStream

AsarStream: {
    path: string;
    stat: CrawledFileType["stat"];
    streamGenerator: (() => NodeJS.ReadableStream);
    unpacked: boolean;
}

Type declaration

  • path: string

    Relative path to the file or directory from within the archive

  • stat: CrawledFileType["stat"]
  • streamGenerator: (() => NodeJS.ReadableStream)

    Function that returns a read stream for a file. Note: this is called multiple times per "file", so a new NodeJS.ReadableStream needs to be created each time

      • (): NodeJS.ReadableStream
      • Returns NodeJS.ReadableStream

  • unpacked: boolean

    Whether the file/link should be unpacked