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

CLI support for decompressing base64 encoded files #262

Open
IGx89 opened this issue May 13, 2024 · 1 comment
Open

CLI support for decompressing base64 encoded files #262

IGx89 opened this issue May 13, 2024 · 1 comment

Comments

@IGx89
Copy link

IGx89 commented May 13, 2024

Hello! I was playing around with the new CLI options in v2 (thanks!) and ran into a limitation. For decompressing it always assumes the input file is a binary uint8array file. It doesn't support decoding files in other formats, such as base64 text files. Could support for that be added? It took me a while to figure out why lz-string -d -e base64 lzstring_in.txt always output nothing.

@Rycochet
Copy link
Collaborator

Meh, I have so many problems with that - but it's valid - it must load as a unit8array purely to keep the binary data (thanks nodejs), but I should do some validation checking on things and make sure it's behaving correctly - currently no time for it, so not sure when I'll get a chance - just want to confirm tht when you use the decoder directly with a javascript string it outputs the right data? 😄

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

2 participants