0.1.6 • Published 10 months ago

@ronin/tarball v0.1.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

RONIN Tarball

tests code coverage install size

This package generates a tarball file in-memory, with the ability to compress it using gzip.

Usage

import { createTarball } from '@ronin/tarball';

const files = [
  {
    name: 'hello.txt',
    contents: new TextEncoder().encode('Hello World'),
  },
];

const tarball = createTarball(files);
//       ^? { name: null, data: Uint8Array<ArrayBuffer> }

Testing

Use the following command to run the test suite:

bun test
0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago