-
-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hi there!
I might be being a little dumb, but I have a use case for some scripting related tasks within a Bun.sh framework I am working on, and I see that Wasmoon seems to be a maintained and looking like a pretty solid project, but I am struggling with some ideas that I don't see is covered.
If there is documentation, feel free to point that out to me.
At the moment, I am writing files, but as of now, I don't know where those files actually go, (writing the files from within the the Lua engine using io. I can see options for like loadFile but entirely unsure how these work, as they aren't typed, so I can't see what they actually return/do. I can see that writing a file like test.txt and then loading the file just returns null, so unsure how that works as the code doesn't error either.
What kind of security does this have? for example if a user was to write a script, what can they access from within the engine that I don't specifically give them?
And then generally, like what features are available? other than running Lua scripts, what else can I do within this framework? like I see there are environment variables you can give the LuaFactory, but I don't see any documentation.
Also how do I open files from within my own file system, can I pass references? or?
Any pointers would be great as to where to look to get answers would be heavily appreciated.
Thanks,