MJS JavaScript engine

Github Repo C Header C source JS source
mongoose-os-libs/mjs mos_mjs.h    

This library brings an mJS: restricted JavaScript-like Engine.

Apart from adding the mJS itself, the library creates a global instance of it (available via mgos_mjs_get_global()), and also brings a number of mgos-specific JavaScript API files.


mJS wrapper API.


mgos_mjs_get_global

struct mjs *mgos_mjs_get_global(void);

Return global mJS instance.

edit this doc