javascriptunrar

UNRAR in javascript


is there a library to unRAR files? The rar files I have to work with contain multiple files.

I'm looking for a way to navigate rar content, and get a blob with the uncompressed content of a selected file within the .rar one.

I'm already using zip.js to unzip files, and need the same for RAR. Thanks a lot for your time reading it.


Solution

  • I know this is an old question. But bitjs is no longer maintained, and very hard to use.

    Try https://github.com/workhorsy/uncompress.js . It even works with RAR 5.

    Here is the most trivial example I could make: http://workhorsy.github.io/uncompress.js/examples/trivial/index.html .