1.0.0 • Published 9 months ago

@compilets/untar-url v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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 @compilets/untar-url https://some.tar.gz /tmp/mytar
1.0.0

9 months ago

0.1.1

10 months ago

0.1.0

10 months ago