tar
    Preparing search index...

    Class ReadEntry

    An archive entry with its body, in the shape of a Response. The body can be consumed one time, in one way. It must be consumed before the next entry is read: after that, the rest of it is gone.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    absolute?: string

    The absolute path of the entry, when a consumer resolves it.

    atime?: Date
    ctime?: Date
    dev?: number
    devmaj: number
    devmin: number
    extended?: Pax

    The PAX header that applies to this entry only.

    gid?: number
    globalExtended?: Pax

    The global PAX header in effect.

    gname?: string
    header: Header

    The header block of the entry.

    ignore: boolean

    The body is skipped. Set for a type that is not an object of the file system, and for an entry that the filter refuses.

    ino?: number
    invalid: boolean = false

    A consumer sets this when it refuses the entry.

    linkpath?: string
    mode?: number

    The permission bits only.

    mtime?: Date
    nlink?: number
    path: string
    size: number

    The number of bytes in the body.

    uid?: number
    uname?: string
    unsupported: boolean = false

    A consumer sets this when it does not support the type.

    Accessors

    • get body(): ReadableStream<Uint8Array<ArrayBufferLike>>

      The body as a stream. Each chunk is a view into the input, not a copy. Input is read only when the stream is read.

      Returns ReadableStream<Uint8Array<ArrayBufferLike>>

    • get bodyUsed(): boolean

      True when the body started to be consumed.

      Returns boolean

    Methods

    • The body in a new ArrayBuffer.

      Returns Promise<ArrayBuffer>

    • The body in a new Uint8Array.

      Returns Promise<Uint8Array<ArrayBuffer>>

    • The body, decoded as UTF-8. As with Response.text(), a byte order mark at the start is not in the text.

      Returns Promise<string>