Have you looked at untar.js? https://code.google.com/p/bitjs/source/browse/untar.js?r=0eca1f06d91e1477e3708531939c8071fc877855
On a tangentially-related note, I've done some work on a python sword zmodule reader. It's stalled a bit now, because I've seen recommendations to use the C++ libraries, and just bindings to other languages. I understand the desire, but I think that Javascript is a good example of why that's not acceptable in all cases. For some distribution methods, it may be necessary to have everything implemented in a particular scripting language, such as for a Client-side Javascript bible reader. I think that encouraging using the C++ library is good, but it's even more important to make sure that the file formats are well documented, to allow alternate implementations if they are necessary. Ryan On Mon, Jul 8, 2013 at 5:29 AM, Stephan <i...@tetzels.de> wrote: > Hi, > > I've started to work on a pure Javascript module to read the bible modules > from CrossWire in a browser environment (sources: > https://github.com/zefanja/swordjs , Demo: http://zefanjas.de/swordjs/ -> > You have to install a module first from here > http://crosswire.org/ftpmirror/pub/sword/packages/rawzip/). Don't expect to > much, the basic things are working, but there is still a lot of work to be > done... > > I want to provide an API to get a list of all modules in a repository. I > think libsword takes the mods.d.tar.gz file in every repo and unpack it on > the device to get this list. > > Is it possible to add the same file as a zip compressed one in every > repository, because unzipping in the browser is working, but I didn't find a > (working) module to untar a file. > > That would be great. > > Blessings, > Stephan > > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page