tar
    Preparing search index...

    Type Alias ExtractOptionsSync

    ExtractOptionsSync: ReadOptionsSync & UnpackOptions & {
        maxReadSize?: number;
        onEntry?: (entry: ReadEntrySync) => unknown;
        transform?: (
            entry: ReadEntrySync,
        ) => ((chunk: Uint8Array) => Uint8Array) | undefined;
    } & (
        | { file?: string; fs: ExtractFSSync; input: TarInputSync }
        | { file: string; fs: ExtractFSSync & TarFSSync; input?: undefined }
    )

    The options of extractSync. Set input, or file.

    Type Declaration

    • OptionalmaxReadSize?: number

      The most bytes to read from the file at one time. Default, and with 0, 16 MiB. A positive integer, or Infinity.

    • OptionalonEntry?: (entry: ReadEntrySync) => unknown

      Called with each entry before it is extracted.

    • Optionaltransform?: (entry: ReadEntrySync) => ((chunk: Uint8Array) => Uint8Array) | undefined

      Return a function that changes each chunk of the content of a file entry, or undefined to write the content as it is.