isomorphic-untar-gzip
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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;
}>;

Readme

Keywords

none

Package Sidebar

Install

npm i isomorphic-untar-gzip

Weekly Downloads

27

Version

1.1.0

License

MIT

Unpacked Size

8.14 kB

Total Files

7

Last publish

Collaborators

  • jasperdm