Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unzipping #12

Open
mikhailrojo opened this issue Jan 15, 2017 · 2 comments
Open

unzipping #12

mikhailrojo opened this issue Jan 15, 2017 · 2 comments

Comments

@mikhailrojo
Copy link

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

@romanet
Copy link

romanet commented Jan 17, 2017

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

@vyredo
Copy link

vyredo commented Dec 12, 2022

I think we should close this ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants