il2cppdump-mermaid
Version:
A small script to generate mermaid code from [Il2CppInspector](https://github.com/djkaty/Il2CppInspector) generated code that help you understand the relations
19 lines (13 loc) • 386 B
JavaScript
// Hacky patch from commonjs to module
import * as fs from 'fs';
const m = process.argv[2];
const parser = fs.readFileSync(`./${m}.js`, 'utf8');
const lines = parser.split('\n');
lines.splice(0, 8);
lines.splice(lines.length - 5, 5)
fs.writeFileSync(`./${m}.js`, lines.join('\n') + `
export {
peg$SyntaxError as SyntaxError,
peg$parse as parse,
}
`, 'utf8');