Initial commit
diff --git a/module-pre.js b/module-pre.js
new file mode 100644
index 0000000..bb23b71
--- /dev/null
+++ b/module-pre.js
@@ -0,0 +1,5 @@
+globalThis.printBuffer = '';
+
+Module['print'] = function (out) {
+    globalThis.printBuffer += out + "\n";
+};