A WASM module built from the official MicroPython port
MicroPython.js
MicroPython transmuted into Javascript (WASM) by Emscripten.
Testing and Contribution Needed, feel free to make an issue or even better, a PR
What's New on 1.1
New Async/Await or Promise API
New Python classes to expose JS API and Objects like DOM API, XHR, Node.JS require, and etc
New Python promise class to wait promises with emscripten_sleep, using Emterpreter
Running with Node.js
On Node.JS console
const mp_js = require('micropython');
mp_js.init(64 * 1024);
mp_js.do_str("print('hello world')\n");
On production/actual code use AsyncFunction or Promise to get the guaranteed result
(async () => { //AsyncFunction
const mp_js = await require('micropython');
mp_js.init(64 * 1024);
aw