UNPKG

tar

Version:
15 lines • 791 B
import { type WithAliases } from './dealias.js'; import type { ExtractOptions, ExtractOptionsSync } from './options.js'; /** * Extract the entries of an archive into the directory `opt.cwd`. * If `files` is set, only the entries that it lists, and the entries * in the directories that it lists. * * A problem with one entry is a warning for `opt.onwarn`, and the * extraction continues. A listed path that no entry matches is a * warning when the archive ends. With `opt.strict`, each is an error. */ export declare const extract: (options: WithAliases<ExtractOptions>, files?: string[]) => Promise<void>; /** The sync form of `extract`. */ export declare const extractSync: (options: WithAliases<ExtractOptionsSync>, files?: string[]) => void; //# sourceMappingURL=extract.d.ts.map