“Convert the PK4 files in my Downloads folder to LHA”
Or run it yourself:
filestarcli -i file.pk4 -c "convert to lha"
Runs on your computer, so your files stay on it. Works on Windows, macOS and Linux. 50 free conversions with the npm install, no account needed.
Can my AI agent convert PK4 to LHA?
Yes. Install the Filestar CLI with npm install -g filestar and your agent can run filestarcli -i file.pk4 -c "convert to lha" on your computer, so your files stay on it.
A PK4 file is an id Tech 4 game archive (Doom 3, Quake 4, Prey) - a ZIP file with another extension holding maps, textures, scripts and sounds. Filestar extracts its files and converts the images inside.
The LHA (also known as LHARC) file type is a compressed archive format developed by Haruyasu Yoshizaki. It primarily uses the LZSS algorithm and Huffman coding for compression, enabling the efficient packaging of multiple files and directories into a single, smaller file. Initially designed for use in the DOS operating system, LHA became popular in Japan and was widely adopted for software distribution on platforms such as Amiga and early versions of Windows.