Create a tar.xz archive on disk from a list of source files.
await createFile('archive.tar.xz', { files: [ { name: 'a.txt', source: '/local/a.txt' }, { name: 'b/c.txt', source: Buffer.from('hello') }, ],}); Copy
await createFile('archive.tar.xz', { files: [ { name: 'a.txt', source: '/local/a.txt' }, { name: 'b/c.txt', source: Buffer.from('hello') }, ],});
Create a tar.xz archive on disk from a list of source files.