-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
26 lines (24 loc) · 831 Bytes
/
types.ts
File metadata and controls
26 lines (24 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @fileoverview Public type surface for `archives/*` modules — the
* `ArchiveFormat` union and the `ExtractOptions` security-limit
* record. Pure types, no runtime side effects.
*/
/**
* Archive format type.
*/
export type ArchiveFormat = 'tar' | 'tar.gz' | 'tgz' | 'zip'
/**
* Options for archive extraction.
*/
export interface ExtractOptions {
/** Suppress log messages */
quiet?: boolean | undefined
/** Strip leading path components (like tar --strip-components) */
strip?: number | undefined
/** Maximum number of entries to extract (default: 100,000) */
maxEntries?: number | undefined
/** Maximum size of a single extracted file in bytes (default: 100MB) */
maxFileSize?: number | undefined
/** Maximum total extracted size in bytes (default: 1GB) */
maxTotalSize?: number | undefined
}