gzip-js icon indicating copy to clipboard operation
gzip-js copied to clipboard

unzipping

Open mikhailrojo opened this issue 8 years ago • 2 comments

Hi, very nice lib, but I cannot figure out how to unzip it, when a do gzip.unzip(out) - I get back array of numbers [ 72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100 ] how to convert them into letters? thank you

mikhailrojo avatar Jan 15 '17 14:01 mikhailrojo

var decoded=""; [ 72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100 ].forEach(ch=>decoded+=(String.fromCharCode(ch))); undefined decoded "Hello world"

romanet avatar Jan 17 '17 14:01 romanet

I think we should close this ticket?

vyredo avatar Dec 12 '22 03:12 vyredo