温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/ArchiveOptions
点击访问原文链接

Bun.ArchiveOptions TypeScript interface | API Reference | Bun

Bun.ArchiveOptions TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/Bun/ArchiveOptionsPcompressPlevel

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/ArchiveOptionsPcompressPlevel

interface

ArchiveOptionsinterface ArchiveOptions

Options for creating an Archive instance.

By default, archives are not compressed. Use { compress: "gzip" } to enable compression.

// No compression (default)
new Bun.Archive(data);

// Enable gzip with default level (6)
new Bun.Archive(data, { compress: "gzip" });

// Specify compression level
new Bun.Archive(data, { compress: "gzip", level: 9 });
compress?: 'gzip'

Compression algorithm to use. Currently only "gzip" is supported. If not specified, no compression is applied.

level?: number

Compression level (1-12). Only applies when compress is set.

1: Fastest compression, lowest ratio6: Default balance of speed and ratio12: Best compression ratio, slowest

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Bun.ArchiveOptions TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Options for creating an Archive instance. By default, archives are not compressed. Use `{ compress: