How to read or run other files and programs with Lua?

Asked

Viewed 66 times

0

Is there any file system(fs) in Lua? Any way to run JS files on Lua?

  • This may help you: https://github.com/ceifa/demoon

1 answer

0


There is and there isn’t. There is os.execute() who does the same.

Documentation. Wiki.

It does not serve to run Javascript files, but can call the Node or Deno that will do this execution.

There may be another more suitable solution depending on the actual and specific need.

  • but I can get something back?

  • It will return whether it worked or not, that’s all. If you want to make communication you will have to create a mechanism of your own, such as system.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.