codeshoot

1.0.2 • Public • Published

📸 codeshoot

Turn code into beautiful, shareable images — directly in the browser, no framework needed.

codeshoot is a lightweight JavaScript package that allows users to paste source code and instantly generate a screenshot-quality image with syntax highlighting. It's perfect for:

  • Sharing code on social media
  • Creating blog visuals
  • Embedding into portfolio sites

🚀 Features

  • ✅ ** JavaScript** — Built in Javascript
  • Syntax highlighting via Prism.js
  • 🎨 Built-in dark theme (custom themes supported)
  • 📝 Editable code input with real-time preview
  • 🖼️ Export code snippet as a PNG image (via html2canvas)
  • 🧩 Embeddable in any web page or custom tool

Installation

Install from NPM:

npm install koome/codeshoot

Readme

Keywords

none

Package Sidebar

Install

npm i codeshoot

Weekly Downloads

198

Version

1.0.2

License

MIT

Unpacked Size

134 kB

Total Files

21

Last publish

Collaborators

  • koomekelvin