@ronin/tarball
v0.1.6
Published
Generate a tarball file in-memory
Downloads
1,009
Readme
RONIN Tarball
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