ExtractionOptions
Nodepod API / src / npm / ExtractionOptions
Interface: ExtractionOptions
Section titled “Interface: ExtractionOptions”Defined in: src/packages/archive-extractor.ts:58
Properties
Section titled “Properties”expectedIntegrity?
Section titled “expectedIntegrity?”
optionalexpectedIntegrity?:string
Defined in: src/packages/archive-extractor.ts:66
npm lockfile SRI, e.g. sha512-<base64> — verified on main after download
expectedShasum?
Section titled “expectedShasum?”
optionalexpectedShasum?:string
Defined in: src/packages/archive-extractor.ts:64
expected sha1 hex from the npm registry, checked after download
filter?
Section titled “filter?”
optionalfilter?: (entryPath) =>boolean
Defined in: src/packages/archive-extractor.ts:61
Parameters
Section titled “Parameters”entryPath
Section titled “entryPath”string
Returns
Section titled “Returns”boolean
onFile?
Section titled “onFile?”
optionalonFile?: (relativePath,data) =>void
Defined in: src/packages/archive-extractor.ts:70
Sees every extracted file (path relative to the package) as it is written.
Parameters
Section titled “Parameters”relativePath
Section titled “relativePath”string
string | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”void
onProgress?
Section titled “onProgress?”
optionalonProgress?: (msg) =>void
Defined in: src/packages/archive-extractor.ts:62
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
profiler?
Section titled “profiler?”
optionalprofiler?:NodepodProfilerImpl|null
Defined in: src/packages/archive-extractor.ts:68
Internal opt-in profiler hook. Omitted on the default path.
stripComponents?
Section titled “stripComponents?”
optionalstripComponents?:number
Defined in: src/packages/archive-extractor.ts:60