@cotar/tar
v6.0.1
Published
Create reproducible tars from very large lists of files, using hardlinks to deduplicate files
Downloads
147
Readme
@cotar/tar
Create reproducible tars from very large lists of files, using hardlinks to deduplicate files
import { TarBuilder } from '@cotar/tar';
const tb = new TarBuilder('./output.tar');
for (const fileName in fileList) {
const fileData = await fs.promises.readFile(fileName);
await tb.write(fileName, fileData);
}
await tb.close();