Détail du package

tar-mini

nonzzz363.1kMIT0.2.0

It's an implementation based on the ustar format

archive, tar, pack, extract

readme

TarMini

It's an implementation based on the ustar format. This package only provides low-level API's.

Usage

// packing
import { createPack, createExtract } from 'tar-mini'

const pack = createPack()

pack.add(new Uint8Array(512), {
  // options
})

pack.done()

// extracting

const extract = createExtract()

extract.on('entry', (head, file) => {
  // todo
})

pack.receiver.pipe(extract.receiver)

Sponsors

Related

LICENSE

MIT

Author

Kanno

changelog

0.2.0

Features

  • Support handle global_pax_header.

0.1.4

  • Pause stream until fill right size.

0.1.3

Patches

  • Fix incorrect split chunk when process large files.

0.1.2

Patches

  • Fix GNU format can't handle @LongLink GNU and etc.

0.1.1

Patches

  • Fix large file parsing error.

0.1.0

A simple implementation.