Home

Add a comment

 

Avatar: Daniel Hellerstein

Re: Embrace boredom

I just obtained and tested you lz-string.js library -- for the reason you stated 10 years ago! Which is: saving to localStorage (or to indexDb). Alas, it was a bit stressful doing so. At the risk of not sounding appreciative, it wasn't a fine example of "embrace boredom" What I did: a) Google " javascript zip string" https://pieroxy.net/blog/pages/lz-string/index.html is the 3rd choice b) go there ... YES, this is what I want. The install is (<script>...</script>) is simple, and the usage (straight function calls) is Simple. Yaay! And the several options (utf16, etc. are a good touch)!! c) Per the instructions https://github.com/pieroxy/lz-string/ -- look for lz-string-1.3.0.js. And that's where the boredom ceased. I looked all over, and nothing. But perhaps I am being too bitchy -- there is a tip stating "The "old style" minified AMD file is available as dist/index.umd.js via various CDNs or package managers. But where is "dist/" ??? Not on the gitHub page -- https://github.com/pieroxy/lz-string/dist/index.umd.js returns "Not Found" d) Somehow (I can't remember how) I found https://github.com/pieroxy/lz-string/releases/tag/1.5.0 e) And it was easy enough to download lz-string.js in the libs/ folder The specRunner.html tester was kind of useless -- do I have to learn how use "jasmine" just to understand the demo?? Oh well, it wasn't that hard to write my own little test html, and as noted in step 1 above-- the functions do work! https://github.com/pieroxy/lz-string/ And it was tricky for me to get the code! Call me obsolete, but I like working with .js files loaded using clunky <script ...> statements. If for no other reason that I don't have to mess with npm etc, and code can run in standalone. Again, a sincere thank you. But I wonder if in the last decade it has become declasset to .js files? Is it considered ill mannered NOT to use NPM? Am I that out of touch with acceptable practice? I am not sure how I finally fond

Re: Embrace boredom


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

Home