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

1.1.0 • Public • Published

Isomorphic untar

untar a tarball in the browser or node.

Installation

Install this library using yarn add isomorphic-untar

Usage

This library currently only exports a single function which takes in an 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

Weekly Downloads

53

Version

1.1.0

License

MIT

Unpacked Size

2.63 kB

Total Files

5

Last publish

Collaborators

  • jasperdm