modularize code, add dummy version of roverd

This commit is contained in:
legop3
2025-11-12 01:13:29 -05:00
parent b5ce6706d6
commit 73b1b44c35
41 changed files with 1018 additions and 401 deletions
+11
View File
@@ -0,0 +1,11 @@
registerModule('helpers/formatters', (require, exports) => {
function formatHex(base64) {
if (!base64) return '';
const buffer = Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));
return Array.from(buffer)
.map((b) => b.toString(16).padStart(2, '0'))
.join(' ');
}
exports.formatHex = formatHex;
});