tar
    Preparing search index...

    Function createSync

    • The sync form of create. With no opt.file, the result is an iterator of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptionsSync, Aliased> & Partial<
            Pick<
                CreateOptionsSync,
                "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: PackInputSync[]

      Returns void

    • The sync form of create. With no opt.file, the result is an iterator of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptionsSync, Aliased> & Partial<
            Pick<
                CreateOptionsSync,
                "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: PackInputSync[]

      Returns IterableIterator<Uint8Array<ArrayBufferLike>, undefined>

    • The sync form of create. With no opt.file, the result is an iterator of the bytes of the archive.

      Parameters

      • opt: Omit<CreateOptionsSync, Aliased> & Partial<
            Pick<
                CreateOptionsSync,
                "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: PackInputSync[]

      Returns void | IterableIterator<Uint8Array<ArrayBufferLike>, undefined, any>