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 unpressed 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.
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 unpressed 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.
Share Improve this question asked Jan 4, 2013 at 13:36 Alejandro SilvestriAlejandro Silvestri 3,78434 silver badges46 bronze badges 5-
3
First link when you google
unrar javascript
: unrar.js – Sani Huttunen Commented Jan 4, 2013 at 13:38 - I can see you didn't try it. I couldn't make it work, neither find an alternative. – Alejandro Silvestri Commented Feb 7, 2013 at 14:04
- @YoArgentino did you try to run the script into a web worker? – check_ca Commented Feb 21, 2013 at 0:00
- Yes, but the code is undocumented and need a lot of energy to run it. And reading it, I found it supports so few rar versions, and I need more versions supported for my application. – Alejandro Silvestri Commented Feb 26, 2013 at 14:27
- The new home for bitjs is at GitHub for about a decade: github./codedread/bitjs - but it does not support every version of RAR. – codedread Commented Dec 15, 2023 at 0:38
1 Answer
Reset to default 6I know this is an old question. But bitjs is no longer maintained, and very hard to use.
Try https://github./workhorsy/unpress.js . It even works with RAR 5.
Here is the most trivial example I could make: http://workhorsy.github.io/unpress.js/examples/trivial/index.html .