@compilets/untar-url
v1.0.1
Published
Untar remote or local .tar/.tar.gz file to local disk
Downloads
87
Readme
untar-url
Untar remote or local .tar/.tar.gz file to local disk.
Import
import {untar} from '@compilets/untar-url';
API
interface UntarOptions {
filter?: (fileName: string) => boolean;
}
export declare function untar(url: string, targetDir: string, options?: UntarOptions): Promise<void>;
Example
import {untar} from '@compilets/untar-url';
await untar('https://some.tar.gz', '/tmp/mytar');
CLI
npx untar-url https://some.tar.gz /tmp/mytar