streamich / crunchme

Pack your .js in a self-extracting compressed file
6 stars 2 forks source link

usability inside browser #2

Open nylki opened 6 years ago

nylki commented 6 years ago

Hi there, Love your tool so far! I just discovered crunchme because I'd like to compress some JS further beyond what uglify-es/js can do.

However it seems like the compressed js crunchme creates has to be run via a node environment. At least it seemed that way for a quick test I made, where the output was using nodes zlib. After that, I looked around a bit in the algo directory and discovered there where a few other algorithms you included that appear to have no dependency on node (no require()).

So my questions are:

I'll try to experiment a bit more with crunchme either way. Thanks for the tool!

nylki commented 6 years ago

After a bit more fiddling around, it seems like the other ones require node as well ( because the are using Buffer).