tar
    Preparing search index...

    Function create

    • Make an archive of the files. With opt.file, the archive is written to that path. With no opt.file, the result is a stream of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptions, Aliased> & Partial<
            Pick<
                CreateOptions,
                "gzip"
                | "cwd"
                | "file"
                | "preservePaths"
                | "noMtime"
                | "follow",
            >,
        > & {
            C?: string;
            f?: string;
            h?: boolean;
            L?: boolean;
            m?: boolean;
            "no-mtime"?: boolean;
            P?: boolean;
            z?: boolean | ZlibOptions;
        } & ({ file: string } | { f: string })
      • files: PackInput[]

      Returns Promise<void>

    • Make an archive of the files. With opt.file, the archive is written to that path. With no opt.file, the result is a stream of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptions, Aliased> & Partial<
            Pick<
                CreateOptions,
                "gzip"
                | "cwd"
                | "file"
                | "preservePaths"
                | "noMtime"
                | "follow",
            >,
        > & {
            C?: string;
            f?: string;
            h?: boolean;
            L?: boolean;
            m?: boolean;
            "no-mtime"?: boolean;
            P?: boolean;
            z?: boolean | ZlibOptions;
        } & NoFileOption
      • files: PackInput[]

      Returns ReadableStream<Uint8Array<ArrayBufferLike>>

    • Make an archive of the files. With opt.file, the archive is written to that path. With no opt.file, the result is a stream of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptions, Aliased> & Partial<
            Pick<
                CreateOptions,
                "gzip"
                | "cwd"
                | "file"
                | "preservePaths"
                | "noMtime"
                | "follow",
            >,
        > & {
            C?: string;
            f?: string;
            h?: boolean;
            L?: boolean;
            m?: boolean;
            "no-mtime"?: boolean;
            P?: boolean;
            z?: boolean | ZlibOptions;
        }
      • files: PackInput[]

      Returns ReadableStream<Uint8Array<ArrayBufferLike>> | Promise<void>