Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌈 🗺️ source-to-minimap

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 typescript

Here's the minimap of this module's transform.ts

Minimap of the transform ts

About

Transform source code into a themed minimap

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages