Comments (8)
I originally made this module to work in the browser. I have never tested it with Node. I assume it will work with minimal modifications, but I have no experience making NPM modules.
I would love if someone could help out in making a NPM module happen. Any help with that would be greatly appreciated.
from uncompress.js.
Load libunrar.js in a web-worker and call readRARContent function, read the source code for parameter/return value. Also read worker.js, index.html for usage example.
It seems like libunrar.js wont work because node js doesn't support web worker, but maybe I'm wrong:
Node integration doesn't work in web workers, and there is no plan to do. Workers in Chromium are implemented by starting a new thread, and Node is not thread safe. Back in past we had tried to add node integration to web workers in Atom, but it crashed too easily so we gave up on it.
from uncompress.js.
If you are in node.js environment then this is probably useless for you because you can call the native unrar utility/library
https://github.com/wcchoi/libunrar-js#why
from uncompress.js.
Minimal modifications:
- Add package.json
- function loadScript(url) needs to be replaced by require()
- function currentScriptPath() needs to be replaced by __dirname
- find libunrar.js alternative (Just in case)
from uncompress.js.
Something like this package.json
libunrar.js alternative: unrar utility/library (not sure if is the best alternative)
from uncompress.js.
The libunrar.js we use is just the official Rarlabs unrar compiled to JS using Emscripten. So it works the same, but uses much more RAM and CPU. So if you are on a system with unrar installed, that would be a much better thing to use.
from uncompress.js.
Also note. Our version of libunrar.js has been modified to work without a WebWorker. The original version at https://github.com/wcchoi/libunrar-js uses a WebWorker. So that should not be a problem.
from uncompress.js.
Ok, I just found this: unarchiver, supported file formats include Zip, Tar-GZip, Tar-BZip2, RAR and more,
also there is a npm package: https://www.npmjs.com/package/unpack-all
from uncompress.js.
Related Issues (15)
- Extract archive to local directory HOT 4
- Desscompresion progress HOT 1
- Beautiful CODE!!! How can I extract and CBR file which is stored on server HOT 6
- Change loadArchiveFormats to use a callback
- Replace var with let and const HOT 1
- Add support for password protected RAR archives HOT 2
- Docs? HOT 1
- Rar file not being recognized HOT 4
- There is some problem in uncompress.js HOT 2
- How to use this on vue HOT 1
- libunrar-js error?? Invalid asm.js: Invalid member of stdlib HOT 5
- Use uncompress in cordova, only new worker() once, but prints "Worker ready..." twice HOT 2
- Seems it does not support self-exe rar archives HOT 1
- Can u support 7z / lzma2? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uncompress.js.