- Community aggregator
- Country: United States
Writing a TAR archive in the browser in ~100 lines of TypeScript
ZIP has good libraries ( fflate , JSZip ). TAR gets less attention, but it's one of the simplest file formats you'll come across, which makes it a good format to write by hand. Here's how I build .tar files fully in the browser. The format in one paragraph A TAR file is a sequence of 512-byte…