Transform source code into a themed minimap
Uses Shiki 式 syntax highlighter for tokenization and 🐈 meow for arg parsing
Usage
$ src2map <file> [options]
Options
--theme, -t Vscode theme to use (default: "dark-plus")
--lang, -l Language to use for syntax highlighting (default: inferred from file extension)
--outFile, -o Output file (default: "output.svg")
--scale, -s Scale factor for the output image (default: 1)
--ratio, -r Aspect ratio for the output image (default: 16/10)
Examples
$ ./src2map src/index.ts --theme dracula --lang typescriptHere's the minimap of this module's transform.ts