Q:

bz2 in javascript

Are there any javascript libraries that can take a byte array and bz2 decompress it into another byte array?  I know that many browsers have this capability for an entire stream, but this array is at an offset from the start of the stream.

A:

Yes. Here's ont for byte array: https://github.com/antimatter15/bzip2.js
And for binary strings: https://github.com/kirilloid/bzip2-js

