rotemdan / lzutf8.js

A high-performance Javascript string compression library
MIT License
322 stars 26 forks source link

Is there a simple way to just require/import the compression / decompression parts of this library separately? #16

Closed briangruber closed 6 years ago

briangruber commented 6 years ago

Great work on this, btw!

Maybe this is a rookie mistake or misunderstanding, but is there a simple way if I just want to use the LZUTF8.compress portion and don't want or need to include all the decompression stuff in my project, or is the code not structured to allow that?

rotemdan commented 6 years ago

The code isn't organized to provide that. I've mentioned in another issue I wish to create a more minimal library that would only provide the basic compress / uncompress part.

I also hope to someday rewrite the compression and decompression code in a language like C/C++/Go (I already wrote an experimental C++ version several years ago) so it can be compiled to webassembly and run as a native executable as well, so I guess I might achieve both at the same time.

Unfortunately I don't really have time for that at the moment, though it might happen at some unknown future time. Currently I try to keep the library at minimal maintenance state.