Skip to content

ExtractionOptions

Nodepod API


Nodepod API / src / npm / ExtractionOptions

Defined in: src/packages/archive-extractor.ts:58

optional expectedIntegrity?: string

Defined in: src/packages/archive-extractor.ts:66

npm lockfile SRI, e.g. sha512-<base64> — verified on main after download


optional expectedShasum?: string

Defined in: src/packages/archive-extractor.ts:64

expected sha1 hex from the npm registry, checked after download


optional filter?: (entryPath) => boolean

Defined in: src/packages/archive-extractor.ts:61

string

boolean


optional onFile?: (relativePath, data) => void

Defined in: src/packages/archive-extractor.ts:70

Sees every extracted file (path relative to the package) as it is written.

string

string | Uint8Array<ArrayBufferLike>

void


optional onProgress?: (msg) => void

Defined in: src/packages/archive-extractor.ts:62

string

void


optional profiler?: NodepodProfilerImpl | null

Defined in: src/packages/archive-extractor.ts:68

Internal opt-in profiler hook. Omitted on the default path.


optional stripComponents?: number

Defined in: src/packages/archive-extractor.ts:60