class documentation

class JS(mjs.MJS):

View In Hierarchy

A MicroPython wrapper for the MJS JavaScript engine.

Methods

  • exec(path)
    Executes the JavaScript code from the specified file path and returns the result.
  • run(js_code)
    Executes the provided JavaScript code and returns the result.