Skip to content

Untar remote or local .tar/.tar.gz file to local disk.

License

Notifications You must be signed in to change notification settings

compilets/untar-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Untar remote or local .tar/.tar.gz file to local disk.

Topics

Resources

License

Stars

Watchers

Forks

Contributors