4 ms·
This is really cool! How did you do the encoding though?
by jeremiecoullon 6y ago
This is really cool! How did you do the encoding though?
- willcipriano 6y agoThank you! Most of the heavy lifting is done by the lz-string library[0], the compression works well for small text files, sometimes the URL out will be shorter than the input in that case. Things like images work out to be hundreds of URLs unfortunately. [0]https://pieroxy.net/blog/pages/lz-string/index.html https://pieroxy.net/blog/pages/lz-string/index.html
- jeremiecoullon 6y agoCool! Yeah I tried a pdf and it generated a bunch of URLs ;)