isomorphic-untar-gzip
v1.1.0
Published
untar and gzip a tarball in the browser or node.
Downloads
251
Readme
Isomorphic untar and gzip
untar and gzip a tarball in the browser or node.
Installation
Install this library using yarn add isomorphic-untar-gzip
Usage
This library currently only exports a single function which takes in an Uint8Array, ArrayBuffer or SharedArrayBuffer and outputs an array of files.
type UntarredFiles = Array<{
name: string;
buffer: ArrayBuffer;
// metadata
mode?: string;
uid?: number;
gid?: number;
size?: number;
mtime?: number;
type?: string;
linkname?: string;
uname?: string;
gname?: string;
devmajor?: number;
devminor?: number;
}>;