0.1.6 • Published 8 months ago

@ronin/tarball v0.1.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 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