Convert code files into beautiful code snippets.
npm install codeframe-snapCodeFrame is a powerful tool for converting code files into beautifully styled image snippets. It features CLI support, syntax highlighting, and customizable themes.
highlight.js.bash
npm install -g codeframe-snap
`$3
`bash
npm install codeframe-snap
`Usage
$3
Use the codeframe command to convert a code file into an image:`bash
codeframe convert -o
`$3
`bash
codeframe convert example.js -o example.png
`$3
- -t, --theme : Select a theme (monokai, github, dracula). Default is monokai.
- -p, --padding : Set padding (in pixels). Default is 32.
- -f, --font-size : Set font size (in pixels). Default is 14.
- --no-line-numbers: Hide line numbers.
- --no-background: Use a transparent background.Themes
Available themes:
- Monokai
- GitHub
- Dracula
- OceanWave
- Duotone
- AyuDarkDevelopment
$3
Run the test suite using:
`bash
npm run test
``