Closed soegaard closed 4 months ago
This is a package manager script. A long time ago I was looking for an issue with text encoding and decided to compress it to base64.
it just downloads LPM package manager to the root directory of WLJS
HoldComplete[If[FileExistsQ["LPM.wl"], Get["LPM.wl"], With[{lpm = Import["https://raw.githubusercontent.com/JerryI/wl-localpackages/main/Kernel/LPM.wl", "String"]}, Export["LPM.wl", lpm, "String"]; Get["LPM.wl"]; ]]]
I finally figured out the trick:
Uncompress[the-string, Hold]
I think, it better to avoid using Compress in the script if possible. It just looks sketchy.
Sure. Will be fixed in a new release
The following expression is in the top of
start.wls
.Why is the expression is compressed? What does it uncompress to?