Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/compress/gzip/writer_gunzip.ts>default

compress and uncompress for Deno
Latest
class default
implements StdWriter
extends EventEmitter
import { default } from "https://deno.land/x/compress@v0.5.2/gzip/writer_gunzip.ts";

Examples

const writer = new Writer('output.txt', { onceSize: 2048 }); await writer.setup(); await writer.write(data); writer.close();

Constructors

new
default(path: string, options?: Options)

Properties

private
chuncks: Uint8Array[]
private
chuncksBytes: number
private
crc32Stream: Crc32Stream
private
inflate: Inflate
private
isCheckHeader: boolean
private
onceSize: number
private
path: string
private
writtenSize: number
protected
bytesWritten: number
protected
writer: File

Methods

close(): void
setup(): Promise<void>
write(p: Uint8Array): Promise<number>