GithubHelp home page GithubHelp logo

npm module? about uncompress.js HOT 8 OPEN

btzr-io avatar btzr-io commented on May 28, 2024
npm module?

from uncompress.js.

Comments (8)

workhorsy avatar workhorsy commented on May 28, 2024

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.

btzr-io avatar btzr-io commented on May 28, 2024

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.

btzr-io avatar btzr-io commented on May 28, 2024

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.

btzr-io avatar btzr-io commented on May 28, 2024

Minimal modifications:

from uncompress.js.

btzr-io avatar btzr-io commented on May 28, 2024

Something like this package.json
libunrar.js alternative: unrar utility/library (not sure if is the best alternative)

from uncompress.js.

workhorsy avatar workhorsy commented on May 28, 2024

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.

workhorsy avatar workhorsy commented on May 28, 2024

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.

btzr-io avatar btzr-io commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.